|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJspUtil
public final class JspUtil
Utility class used for operations related to JSPs.
Method Summary | |
---|---|
static String |
createURL(String href,
String action,
String location,
String scope,
Map params,
JspContext jspContext)
Utility method used by data grid related classes to create URLs. |
static Locale |
getLocale(JspContext jspContext)
Get the Locale from the JspContext |
static PageContext |
getPageContext(JspContext jspContext)
Attempt to convert a JspContext into a PageContext . |
static HttpServletRequest |
getRequest(JspContext jspContext)
Attempt to obtain a HttpServletRequest from a JspContext . |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HttpServletRequest getRequest(JspContext jspContext)
HttpServletRequest
from a JspContext
.
jspContext
- the jsp context
HttpServletRequest
IllegalStateException
- if the JspContext
is unable to provide a HttpServletRequest
public static PageContext getPageContext(JspContext jspContext)
JspContext
into a PageContext
.
jspContext
- the jsp context
IllegalStateException
- if the JspContext
can't be converted into a PageContext
public static String createURL(String href, String action, String location, String scope, Map params, JspContext jspContext) throws URISyntaxException
Utility method used by data grid related classes to create URLs. If both an action name and href are provided, the action name will be used to construct the URL string.
href
- the hrefaction
- the actionlocation
- the intra page locationscope
- the scope into which to create the URLparams
- a map of parameters to attach to the URLjspContext
- the jsp context
HttpServletResponse.encodeURL(String)
URISyntaxException
public static Locale getLocale(JspContext jspContext)
Locale
from the JspContext
jspContext
- the jsp context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |