code: public static HttpServletRequest getRequest(JspContext jspContext) {
          PageContext pageContext = getPageContext(jspContext);
          return (HttpServletRequest)pageContext.getRequest();
      }
docs: Attempt to obtain a {@link HttpServletRequest} from a {@link JspContext}.
  @param jspContext the jsp context
  @return the {@link HttpServletRequest}
  @throws IllegalStateException if the {@link JspContext} is unable to provide a {@link HttpServletRequest}