|
||||||||||
PREV NEXT | FRAMES NO FRAMES All Classes |
StrutsPrepareFilter
and
StrutsExecuteFilter
to use other Servlet filters that need access to
the ActionContextoperationMode
is in 'STORE'.
See struts.properties
where the altSyntax flag is defined.
A tag that creates a HTML <a >.This tag supports the same attributes as the "url" tag, including nested parameters using the "param" tag.
Examples
Map
interface to handle a collection of attributes and
init parameters in a ServletContext
object.operationMode
is 'RETRIEVE'.
ActionMapper
if the former
failed to obtained a valid ActionMapping
or uri.StrutsResultSupport.conditionalParse(String, ActionInvocation)
but does not
convert found object into String.
obj2
exists in obj1
.
ContainUtil
will check if object 1 contains object 2.PatternMatcher
CookieProvider
You must reference this interceptor in your default stack or in action's stack, see example below.Dispatcher
that subclasses can override
with a custom Dispatcher, if needed.
Dispatcher
that subclasses can override
with a custom Dispatcher, if needed.
Objects added to the model are
Application - servlet context attributes hash model JspTaglibs - jsp tag lib factory model Request - request attributes hash model Session - session attributes hash model request - the HttpServletRequst object for direct access response - the HttpServletResponse object for direct access stack - the OgnLValueStack instance for direct access ognl - the instance of the OgnlTool action - the action itself exception - optional : the JSP or Servlet exception as per the servlet spec (for JSP Exception pages) struts - instance of the StrutsUtil class
DateDirective
DateModel
URLDecoder.decode(String, String)
with the encoding specified in the configuration.
Configuration.getTemplate(String, Locale)
call.
ftl
.
Default action mapper implementation, using the standard *.[ext] (where ext usually "action") pattern.
DispatcherErrorHandler
which sends Error Report in devMode or HttpServletResponse.sendError(int, java.lang.String)
otherwise.struts.custom.properties
),
and any custom message resources ().
This class is used to serve common static content needed when using various parts of Struts, such as JavaScript files, CSS files, etc.
ActionMapper
.
HttpServletResponse.sendRedirect(String)
.
DefaultActionMapper.dropExtension(java.lang.String, org.apache.struts2.dispatcher.mapper.ActionMapping)
instead
URLEncoder.encode(java.lang.String)
with the encoding specified in the configuration.
TokenHelper.DEFAULT_TOKEN_NAME
if no name is provided) so that the same token can be re-used for the scope of a request for the same name.
RuntimeException
based on the given information.
Interceptor that is based off of MultiPartRequestWrapper
, which is automatically applied for any request that
includes a file.
StrutsPrepareAndExecuteFilter
instead or
StrutsPrepareFilter
and StrutsExecuteFilter
if needing using the ActionContextCleanUp
filter in addition to this oneActionMapping
.
ActionMapping
.
Renders HTML an input form.
The remote form allows the form to be submitted without the page being refreshed.
Possible extension points are :- createConfiguration method loadSettings method createTemplateLoader method populateContext method
createConfiguration method
Create a freemarker Configuration.
FreemarkerResult.doExecute(String, ActionInvocation)
to obtain the
FreeMarker configuration object that this result will use for template loading.
File
object for the filename specified or null if no files
are associated with the given field name.
File[]
for the given input field name.
FreemarkerResult.doExecute(String, ActionInvocation)
to obtain the
FreeMarker object wrapper object that this result will use for adapting objects into template
models.
org.apache.struts2.servlet.ServletRequestAware
, since this method will be dropped in future.
org.apache.struts2.servlet.ServletRequestAware
, since this method will be dropped in future.
allowRequestParameterSwitch
is 'true', else it simply returns 'NONE', meaning its neither in the 'STORE_MODE' nor
'RETRIEVE_MODE'.
Form
component.
A custom Result type for setting HTTP headers and status by optionally evaluating against the ValueStack.
Include.include(String, java.io.Writer, javax.servlet.ServletRequest,
javax.servlet.http.HttpServletResponse, String)
instead with correct encoding specified
Dispatcher
cookiesMap
into action that implements
CookiesAware
.
Iterator
listKey and listValue are optional, and if not provided, the list item is used
col1
and col2
and return the composite
Collection
.
map1
and map2
and return the composite
Map
ValidationAware
action's messages / errors and field errors into
HTTP Session, such that it will be retrievable at a later stage.Instantiates a new VelocityEngine.
Format Number object in different ways.
page context
.
ActionMapper
s based on the request's prefix
You can specify different prefixes that will be handled by different mappers
ActionMapper
s based on the request's prefix
It is configured through struts.xml
For example, with the following entries in struts.propertiesPrefixBasedActionMapper
to use appropriate ActionProxyFactory
connected with given
ActionMapper
Add below entry to struts.xml to enable the factory:
This interface is only relevant if the Action is used in a servlet environment.
Map
interface to handle a collection of request attributes.RestfulActionMapper
, see documentation for more details
http://struts.apache.org/2.x/docs/restfulactionmapper.htmlservlet context
object.
request dispatcher
.
ActionMapper
provided by the
ActionMapperFactory
to redirect the browser to a URL that invokes the
specified action and (optional) namespace.sendRedirect
method to the location specified.UrlRenderer
interface that creates URLs suitable in a servlet environment.Map
interface to handle a collection of HTTP session
attributes.acceptCookieNames
pattern of allowed names of cookies
to protect against remote command execution vulnerability.
cookiesName
which if matched will allow the cookie
to be injected into action, could be comma-separated string.
cookiesValue
which if matched (together with matching
cookiesName) will caused the cookie to be injected into action, could be
comma-separated string.
FilterDispatcher.filterConfig
; this method
sets up the ServletContextSingleton
with
the servlet context from the filter configuration.
TextFieldTag.setMaxlength(java.lang.String)
instead
InvocationSessionStore.loadInvocation(java.lang.String, java.lang.String)
XWorkBasicConverter
StrutsRequestWrapper
request attribute value stack lookup (JSTL accessibility)
LocaleProvider
implementation class
CompositeActionMapper
to identify its containing ActionMapper
class.
PatternMatcher
implementation class
ReflectionContextFactory
implementation class
ReflectionProvider
implementation class
StaticContentLoader
implementation class
UnknownHandlerManager
implementation class
UrlHelper
implementation class
ValueStackFactory
implementation class
ConversionErrorInterceptor
but only adds conversion errors from the ActionContext to
the field errors of the action if the field value is not null, "", or {""} (a size 1 String array with only an empty
String).StrutsException
with no detail message.
StrutsException
with the specified
detail message.
StrutsException
with the specified
detail message and target.
StrutsException
with the root cause
StrutsException
with the root cause and target
StrutsException
with the specified
detail message and exception cause.
StrutsException
with the specified
detail message, cause, and target
StrutsExecuteFilter
filter instance.ParamNameAwareResult
to accept or throwaway parametersTagLibraryDirectiveProvider
, TagLibraryModelProvider
TokenInterceptor
, providing advanced logic for handling invalid tokens./dir/theme/name
.
JspFactory
, this result mocks a JSP
execution environment and then displays a Velocity template that will be
streamed directly to the servlet output.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES All Classes |