Code example for JspAwareRequestContext

0
	@Override 
	public final int doStartTag() throws JspException { 
		try { 
			this.requestContext = (RequestContext) this.pageContext.getAttribute(REQUEST_CONTEXT_PAGE_ATTRIBUTE); 
			if (this.requestContext == null) { 
				this.requestContext = new JspAwareRequestContext(this.pageContext); 
				this.pageContext.setAttribute(REQUEST_CONTEXT_PAGE_ATTRIBUTE, this.requestContext); 
			} 
			return doStartTagInternal(); 
		} 
		catch (JspException ex) { 
			logger.error(ex.getMessage(), ex); 
			throw ex; 
		} 
		catch (RuntimeException ex) { 
			logger.error(ex.getMessage(), ex); 
			throw ex; 
		} 
		catch (Exception ex) { 
			logger.error(ex.getMessage(), ex);