|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.util.RequestUtils
General purpose utility methods related to processing a servlet request in the Struts controller framework.
Field Summary | |
private static java.lang.reflect.Method |
encode
Java 1.4 encode method to use instead of deprecated 1.3 version. |
protected static org.apache.commons.logging.Log |
log
Commons Logging instance. |
private static MessageResources |
messages
The message resources for this package. |
private static java.lang.String |
PREFIXES_KEY
The context attribute under which we store our prefixes list. |
private static java.util.Map |
scopes
Maps lowercase JSP scope names to their PageContext integer constant values. |
Constructor Summary | |
RequestUtils()
|
Method Summary | |
static java.net.URL |
absoluteURL(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Create and return an absolute URL for the specified context-relative path, based on the server and context information in the specified request. |
static java.lang.String |
actionURL(javax.servlet.http.HttpServletRequest request,
ActionConfig action,
java.lang.String pattern)
Return the context-relative URL that corresponds to the specified ActionConfig , relative to the module associated
with the current modules's ModuleConfig . |
static java.lang.Class |
applicationClass(java.lang.String className)
Return the Class object for the specified fully qualified
class name, from this web application's class loader. |
static java.lang.Object |
applicationInstance(java.lang.String className)
Return a new instance of the specified fully qualified class name, after loading the class from this web application's class loader. |
static java.util.Map |
computeParameters(javax.servlet.jsp.PageContext pageContext,
java.lang.String paramId,
java.lang.String paramName,
java.lang.String paramProperty,
java.lang.String paramScope,
java.lang.String name,
java.lang.String property,
java.lang.String scope,
boolean transaction)
Compute a set of query parameters that will be dynamically added to a generated URL. |
static java.lang.String |
computeURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String forward,
java.lang.String href,
java.lang.String page,
java.util.Map params,
java.lang.String anchor,
boolean redirect)
Deprecated. To be removed in Version 1.3. Use computeURL(PageContext, String, String, String, String, Map, String, boolean) instead. |
static java.lang.String |
computeURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String forward,
java.lang.String href,
java.lang.String page,
java.lang.String action,
java.util.Map params,
java.lang.String anchor,
boolean redirect)
Compute a hyperlink URL based on the forward ,
href , action or page parameter
that is not null. |
static java.lang.String |
computeURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String forward,
java.lang.String href,
java.lang.String page,
java.lang.String action,
java.util.Map params,
java.lang.String anchor,
boolean redirect,
boolean encodeSeparator)
Compute a hyperlink URL based on the forward ,
href , action or page parameter
that is not null. |
static ActionForm |
createActionForm(javax.servlet.http.HttpServletRequest request,
ActionMapping mapping,
ModuleConfig moduleConfig,
ActionServlet servlet)
Create (if necessary) and return an ActionForm instance appropriate for this request. |
static java.lang.String |
encodeURL(java.lang.String url)
Use the new URLEncoder.encode() method from java 1.4 if available, else use the old deprecated version. |
static java.lang.String |
forwardURL(javax.servlet.http.HttpServletRequest request,
ForwardConfig forward)
Return the context-relative URL that corresponds to the specified ForwardConfig. |
static ActionErrors |
getActionErrors(javax.servlet.jsp.PageContext pageContext,
java.lang.String paramName)
Retrieves the value from request scope and if it isn't already an ErrorMessages
some classes are converted to one. |
static java.lang.String |
getActionMappingName(java.lang.String action)
Return the form action converted into an action mapping path. |
static java.lang.String |
getActionMappingURL(java.lang.String action,
javax.servlet.jsp.PageContext pageContext)
Return the form action converted into a server-relative URL. |
static ActionMessages |
getActionMessages(javax.servlet.jsp.PageContext pageContext,
java.lang.String paramName)
Retrieves the value from request scope and if it isn't already an ActionMessages
some classes are converted to one. |
private static java.util.Map |
getAllParametersForMultipartRequest(javax.servlet.http.HttpServletRequest request,
MultipartRequestHandler multipartHandler)
Create a map containing all of the parameters supplied for a multipart request, keyed by parameter name. |
static java.lang.String[] |
getApplicationPrefixes(javax.servlet.ServletContext context)
Deprecated. Use getModulePrefixes(ServletContext) instead. |
static ModuleConfig |
getModuleConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Return the ModuleConfig object is it exists, null otherwise. |
static ModuleConfig |
getModuleConfig(javax.servlet.jsp.PageContext pageContext)
Return the ModuleConfig object if it exists, null if otherwise. |
static java.lang.String |
getModuleName(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Get the module name to which the specified request belong. |
static java.lang.String |
getModuleName(java.lang.String matchPath,
javax.servlet.ServletContext context)
Get the module name to which the specified uri belong. |
static java.lang.String[] |
getModulePrefixes(javax.servlet.ServletContext context)
Return the list of module prefixes that are defined for this web application, creating it if necessary. |
private static MultipartRequestHandler |
getMultipartHandler(javax.servlet.http.HttpServletRequest request)
Try to locate a multipart request handler for this request. |
static ModuleConfig |
getRequestModuleConfig(javax.servlet.http.HttpServletRequest request)
Return the current ModuleConfig object stored in request, if it exists, null otherwise. |
static int |
getScope(java.lang.String scopeName)
Converts the scope name into its corresponding PageContext constant value. |
static boolean |
isXhtml(javax.servlet.jsp.PageContext pageContext)
Returns true if the custom tags are in XHTML mode. |
static java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String scopeName)
Locate and return the specified bean, from an optionally specified scope, in the specified page context. |
static java.lang.Object |
lookup(javax.servlet.jsp.PageContext pageContext,
java.lang.String name,
java.lang.String property,
java.lang.String scope)
Locate and return the specified property of the specified bean, from an optionally specified scope, in the specified page context. |
static java.lang.String |
message(javax.servlet.jsp.PageContext pageContext,
java.lang.String bundle,
java.lang.String locale,
java.lang.String key)
Look up and return a message string, based on the specified parameters. |
static java.lang.String |
message(javax.servlet.jsp.PageContext pageContext,
java.lang.String bundle,
java.lang.String locale,
java.lang.String key,
java.lang.Object[] args)
Look up and return a message string, based on the specified parameters. |
static java.lang.String |
pageURL(javax.servlet.http.HttpServletRequest request,
java.lang.String page)
Return the context-relative URL that corresponds to the specified page attribute value, calculated based on the
pagePattern property of the current module's
ModuleConfig . |
static void |
populate(java.lang.Object bean,
javax.servlet.http.HttpServletRequest request)
Populate the properties of the specified JavaBean from the specified HTTP request, based on matching each parameter name against the corresponding JavaBeans "property setter" methods in the bean's class. |
static void |
populate(java.lang.Object bean,
java.lang.String prefix,
java.lang.String suffix,
javax.servlet.http.HttpServletRequest request)
Populate the properties of the specified JavaBean from the specified HTTP request, based on matching each parameter name (plus an optional prefix and/or suffix) against the corresponding JavaBeans "property setter" methods in the bean's class. |
static boolean |
present(javax.servlet.jsp.PageContext pageContext,
java.lang.String bundle,
java.lang.String locale,
java.lang.String key)
Return true if a message string for the specified message key is present for the specified Locale. |
static java.lang.String |
printableURL(java.net.URL url)
Compute the printable representation of a URL, leaving off the scheme/host/port part if no host is specified. |
static java.net.URL |
requestURL(javax.servlet.http.HttpServletRequest request)
Return the URL representing the current request. |
private static MessageResources |
retrieveMessageResources(javax.servlet.jsp.PageContext pageContext,
java.lang.String bundle,
boolean checkPageScope)
Returns the appropriate MessageResources object for the current module and the given bundle. |
static java.util.Locale |
retrieveUserLocale(javax.servlet.jsp.PageContext pageContext,
java.lang.String locale)
Look up and return current user locale, based on the specified parameters. |
static void |
saveException(javax.servlet.jsp.PageContext pageContext,
java.lang.Throwable exception)
Save the specified exception as a request attribute for later use. |
static void |
selectApplication(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Deprecated. use selectModule(HttpServletRequest,ServletContext) |
static void |
selectApplication(java.lang.String prefix,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Deprecated. use selectModule(String,HttpServletRequest,ServletContext) |
static void |
selectModule(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Select the module to which the specified request belongs, and add corresponding request attributes to this request. |
static void |
selectModule(java.lang.String prefix,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Select the module to which the specified request belongs, and add corresponding request attributes to this request. |
static java.net.URL |
serverURL(javax.servlet.http.HttpServletRequest request)
Return the URL representing the scheme, server, and port number of the current request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
private static MessageResources messages
private static final java.lang.String PREFIXES_KEY
private static java.lang.reflect.Method encode
private static java.util.Map scopes
Constructor Detail |
public RequestUtils()
Method Detail |
public static java.net.URL absoluteURL(javax.servlet.http.HttpServletRequest request, java.lang.String path) throws java.net.MalformedURLException
request
- The servlet request we are processingpath
- The context-relative path (must start with '/')
java.net.MalformedURLException
- if we cannot create an absolute URLpublic static java.lang.Class applicationClass(java.lang.String className) throws java.lang.ClassNotFoundException
Class
object for the specified fully qualified
class name, from this web application's class loader.
className
- Fully qualified class name to be loaded
java.lang.ClassNotFoundException
- if the class cannot be foundpublic static java.lang.Object applicationInstance(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
className
- Fully qualified class name to use
java.lang.ClassNotFoundException
- if the class cannot be found
java.lang.IllegalAccessException
- if the class or its constructor
is not accessible
java.lang.InstantiationException
- if this class represents an
abstract class, an interface, an array class, a primitive type,
or void
java.lang.InstantiationException
- if this class has no
zero-arguments constructorpublic static java.util.Map computeParameters(javax.servlet.jsp.PageContext pageContext, java.lang.String paramId, java.lang.String paramName, java.lang.String paramProperty, java.lang.String paramScope, java.lang.String name, java.lang.String property, java.lang.String scope, boolean transaction) throws javax.servlet.jsp.JspException
<html:link>
tag. If no query parameters are
identified, return null
.
pageContext
- PageContext we are operating inparamId
- Single-value request parameter name (if any)paramName
- Bean containing single-value parameter valueparamProperty
- Property (of bean named by paramName
containing single-value parameter valueparamScope
- Scope containing bean named by
paramName
name
- Bean containing multi-value parameters Map (if any)property
- Property (of bean named by name
containing multi-value parameters Mapscope
- Scope containing bean named by
name
transaction
- Should we add our transaction control token?
javax.servlet.jsp.JspException
- if we cannot look up the required beans
javax.servlet.jsp.JspException
- if a class cast exception occurs on a
looked-up bean or propertypublic static java.lang.String computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.util.Map params, java.lang.String anchor, boolean redirect) throws java.net.MalformedURLException
computeURL(PageContext, String, String, String, String, Map, String, boolean)
instead.
forward
,
href
or page
parameter
that is not null.
pageContext
- PageContext for the tag making this callforward
- Logical forward name for which to look up
the context-relative URI (if specified)href
- URL to be utilized unmodified (if specified)page
- Module-relative page for which a URL should
be created (if specified)params
- Map of parameters to be dynamically included (if any)anchor
- Anchor to be dynamically included (if any)redirect
- Is this URL for a response.sendRedirect()
?
java.net.MalformedURLException
- if a URL cannot be created
for the specified parameterspublic static java.lang.String computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.lang.String action, java.util.Map params, java.lang.String anchor, boolean redirect) throws java.net.MalformedURLException
forward
,
href
, action
or page
parameter
that is not null.
The returned URL will have already been passed to
response.encodeURL()
for adding a session identifier.
pageContext
- PageContext for the tag making this callforward
- Logical forward name for which to look up
the context-relative URI (if specified)href
- URL to be utilized unmodified (if specified)page
- Module-relative page for which a URL should
be created (if specified)action
- Logical action name for which to look up
the context-relative URI (if specified)params
- Map of parameters to be dynamically included (if any)anchor
- Anchor to be dynamically included (if any)redirect
- Is this URL for a response.sendRedirect()
?
java.net.MalformedURLException
- if a URL cannot be created
for the specified parameterspublic static java.lang.String computeURL(javax.servlet.jsp.PageContext pageContext, java.lang.String forward, java.lang.String href, java.lang.String page, java.lang.String action, java.util.Map params, java.lang.String anchor, boolean redirect, boolean encodeSeparator) throws java.net.MalformedURLException
forward
,
href
, action
or page
parameter
that is not null.
The returned URL will have already been passed to
response.encodeURL()
for adding a session identifier.
pageContext
- PageContext for the tag making this callforward
- Logical forward name for which to look up
the context-relative URI (if specified)href
- URL to be utilized unmodified (if specified)page
- Module-relative page for which a URL should
be created (if specified)action
- Logical action name for which to look up
the context-relative URI (if specified)params
- Map of parameters to be dynamically included (if any)anchor
- Anchor to be dynamically included (if any)redirect
- Is this URL for a response.sendRedirect()
?encodeSeparator
- This is only checked if redirect is set to false (never
encoded for a redirect). If true, query string parameter separators are encoded
as >amp;, else & is used.
java.net.MalformedURLException
- if a URL cannot be created
for the specified parameterspublic static java.lang.String getActionMappingName(java.lang.String action)
action
property is manipulated as follows in
computing the name of the requested mapping:
public static java.lang.String getActionMappingURL(java.lang.String action, javax.servlet.jsp.PageContext pageContext)
public static ActionForm createActionForm(javax.servlet.http.HttpServletRequest request, ActionMapping mapping, ModuleConfig moduleConfig, ActionServlet servlet)
null
.
request
- The servlet request we are processingmapping
- The action mapping for this requestmoduleConfig
- The configuration for this moduleservlet
- The action servlet
public static java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String scopeName) throws javax.servlet.jsp.JspException
null
instead. If an exception is thrown, it will
have already been saved via a call to saveException()
.
pageContext
- Page context to be searchedname
- Name of the bean to be retrievedscopeName
- Scope to be searched (page, request, session, application)
or null
to use findAttribute()
instead
javax.servlet.jsp.JspException
- if an invalid scope name
is requestedpublic static int getScope(java.lang.String scopeName) throws javax.servlet.jsp.JspException
scopeName
- Can be "page", "request", "session", or "application" in any
case.
javax.servlet.jsp.JspException
- if the scopeName is not a valid name.public static java.lang.Object lookup(javax.servlet.jsp.PageContext pageContext, java.lang.String name, java.lang.String property, java.lang.String scope) throws javax.servlet.jsp.JspException
saveException()
.
pageContext
- Page context to be searchedname
- Name of the bean to be retrievedproperty
- Name of the property to be retrieved, or
null
to retrieve the bean itselfscope
- Scope to be searched (page, request, session, application)
or null
to use findAttribute()
instead
javax.servlet.jsp.JspException
- if an invalid scope name
is requested
javax.servlet.jsp.JspException
- if the specified bean is not found
javax.servlet.jsp.JspException
- if accessing this property causes an
IllegalAccessException, IllegalArgumentException,
InvocationTargetException, or NoSuchMethodExceptionpublic static java.util.Locale retrieveUserLocale(javax.servlet.jsp.PageContext pageContext, java.lang.String locale)
pageContext
- The PageContext associated with this requestlocale
- Name of the session attribute for our user's Locale. If this is
null
, the default locale key is used for the lookup.
public static java.lang.String message(javax.servlet.jsp.PageContext pageContext, java.lang.String bundle, java.lang.String locale, java.lang.String key) throws javax.servlet.jsp.JspException
pageContext
- The PageContext associated with this requestbundle
- Name of the servlet context attribute for our
message resources bundlelocale
- Name of the session attribute for our user's Localekey
- Message key to be looked up and returned
javax.servlet.jsp.JspException
- if a lookup error occurs (will have been
saved in the request already)public static java.lang.String message(javax.servlet.jsp.PageContext pageContext, java.lang.String bundle, java.lang.String locale, java.lang.String key, java.lang.Object[] args) throws javax.servlet.jsp.JspException
pageContext
- The PageContext associated with this requestbundle
- Name of the servlet context attribute for our
message resources bundlelocale
- Name of the session attribute for our user's Localekey
- Message key to be looked up and returnedargs
- Replacement parameters for this message
javax.servlet.jsp.JspException
- if a lookup error occurs (will have been
saved in the request already)private static MessageResources retrieveMessageResources(javax.servlet.jsp.PageContext pageContext, java.lang.String bundle, boolean checkPageScope) throws javax.servlet.jsp.JspException
pageContext
- Search the context's scopes for the resources.bundle
- The bundle name to look for. If this is null
, the
default bundle name is used.
javax.servlet.jsp.JspException
- if the MessageResources object could not be found.public static void populate(java.lang.Object bean, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
convert()
.
bean
- The JavaBean whose properties are to be setrequest
- The HTTP request whose parameters are to be used
to populate bean properties
javax.servlet.ServletException
- if an exception is thrown while setting
property valuespublic static void populate(java.lang.Object bean, java.lang.String prefix, java.lang.String suffix, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
setProperties()
.
If you specify a non-null prefix
and a non-null
suffix
, the parameter name must match both
conditions for its value(s) to be used in populating bean properties.
If the request's content type is "multipart/form-data" and the
method is "POST", the HttpServletRequest object will be wrapped in
a MultipartRequestWrapper object.
bean
- The JavaBean whose properties are to be setprefix
- The prefix (if any) to be prepend to bean property
names when looking for matching parameterssuffix
- The suffix (if any) to be appended to bean property
names when looking for matching parametersrequest
- The HTTP request whose parameters are to be used
to populate bean properties
javax.servlet.ServletException
- if an exception is thrown while setting
property valuesprivate static MultipartRequestHandler getMultipartHandler(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
request
- The HTTP request for which the multipart handler should
be found.
null
if none is
found.
javax.servlet.ServletException
- if any exception is thrown while attempting
to locate the multipart handler.private static java.util.Map getAllParametersForMultipartRequest(javax.servlet.http.HttpServletRequest request, MultipartRequestHandler multipartHandler)
request
- The (wrapped) HTTP request whose parameters are to be
added to the map.multipartHandler
- The multipart handler used to parse the request.
public static boolean present(javax.servlet.jsp.PageContext pageContext, java.lang.String bundle, java.lang.String locale, java.lang.String key) throws javax.servlet.jsp.JspException
pageContext
- The PageContext associated with this requestbundle
- Name of the servlet context attribute for our
message resources bundlelocale
- Name of the session attribute for our user's Localekey
- Message key to be looked up and returned
javax.servlet.jsp.JspException
- if a lookup error occurs (will have been
saved in the request already)public static java.lang.String printableURL(java.net.URL url)
url
- URL to render in a printable representation
public static java.lang.String actionURL(javax.servlet.http.HttpServletRequest request, ActionConfig action, java.lang.String pattern)
ActionConfig
, relative to the module associated
with the current modules's ModuleConfig
.
request
- The servlet request we are processingaction
- ActionConfig to be evaluatedpattern
- URL pattern used to map the controller servlet
public static java.lang.String forwardURL(javax.servlet.http.HttpServletRequest request, ForwardConfig forward)
ForwardConfig
instance as follows:
contextRelative
property is set, it is
assumed that the path
property contains a path
that is already context-relative:
path
property value starts with a slash,
it is returned unmodified.path
property value does not start
with a slash, a slash is prepended.forwardPattern
property from the
ControllerConfig
for the application module used
to process this request. If no pattern was configured, default
to a pattern of $M$P
, which is compatible with the
hard-coded mapping behavior in Struts 1.0.forwardPattern
, performing the
following substitutions:
path
property of the specified ForwardConfig
, prepended
with a slash if it does not start with one.
request
- The servlet request we are processingforward
- ForwardConfig to be evaluated
public static java.lang.String pageURL(javax.servlet.http.HttpServletRequest request, java.lang.String page)
Return the context-relative URL that corresponds to the specified
page
attribute value, calculated based on the
pagePattern
property of the current module's
ModuleConfig
.
request
- The servlet request we are processingpage
- The module-relative URL to be substituted in
to the pagePattern
pattern for the current module
(MUST start with a slash)
public static java.net.URL requestURL(javax.servlet.http.HttpServletRequest request) throws java.net.MalformedURLException
HttpServletRequest.getRequestURL()
in Servlet 2.3.
request
- The servlet request we are processing
java.net.MalformedURLException
- if a URL cannot be createdpublic static java.net.URL serverURL(javax.servlet.http.HttpServletRequest request) throws java.net.MalformedURLException
request
- The servlet request we are processing
java.net.MalformedURLException
- if a URL cannot be createdpublic static void saveException(javax.servlet.jsp.PageContext pageContext, java.lang.Throwable exception)
pageContext
- The PageContext for the current pageexception
- The exception to be savedpublic static void selectApplication(java.lang.String prefix, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
selectModule(String,HttpServletRequest,ServletContext)
prefix
- The module prefix of the desired modulerequest
- The servlet request we are processingcontext
- The ServletContext for this web applicationpublic static void selectModule(java.lang.String prefix, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
prefix
- The module prefix of the desired modulerequest
- The servlet request we are processingcontext
- The ServletContext for this web applicationpublic static void selectApplication(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
selectModule(HttpServletRequest,ServletContext)
request
- The servlet request we are processingcontext
- The ServletContext for this web applicationpublic static void selectModule(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
request
- The servlet request we are processingcontext
- The ServletContext for this web applicationpublic static java.lang.String getModuleName(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
request
- The servlet request we are processingcontext
- The ServletContext for this web application
public static java.lang.String getModuleName(java.lang.String matchPath, javax.servlet.ServletContext context)
matchPath
- The uri from which we want the module name.context
- The ServletContext for this web application
public static ModuleConfig getRequestModuleConfig(javax.servlet.http.HttpServletRequest request)
selectModule(HttpServletRequest, ServletContext)
.
request
- The servlet request we are processing
public static ModuleConfig getModuleConfig(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context)
request
- The servlet request we are processingcontext
- The ServletContext for this web application
public static ModuleConfig getModuleConfig(javax.servlet.jsp.PageContext pageContext)
pageContext
- The page context.
public static java.lang.String[] getApplicationPrefixes(javax.servlet.ServletContext context)
context
- The ServletContext for this web application
public static java.lang.String[] getModulePrefixes(javax.servlet.ServletContext context)
context
- The ServletContext for this web application
public static ActionMessages getActionMessages(javax.servlet.jsp.PageContext pageContext, java.lang.String paramName) throws javax.servlet.jsp.JspException
ActionMessages
some classes are converted to one.
pageContext
- The PageContext for the current pageparamName
- Key for parameter value
javax.servlet.jsp.JspException
- ifpublic static ActionErrors getActionErrors(javax.servlet.jsp.PageContext pageContext, java.lang.String paramName) throws javax.servlet.jsp.JspException
ErrorMessages
some classes are converted to one.
pageContext
- The PageContext for the current pageparamName
- Key for parameter value
javax.servlet.jsp.JspException
public static java.lang.String encodeURL(java.lang.String url)
public static boolean isXhtml(javax.servlet.jsp.PageContext pageContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |