| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.Token
Token | public class Token extends UIBean (Code) | |
Stop double-submission of forms.
The token tag is used to help with the "double click" submission problem. It is needed if you are using the
TokenInterceptor or the TokenSessionInterceptor. The ww:token tag merely places a hidden element that contains
the unique token.
Examples
<ww:token />
author: Patrick Lightbody author: Rene Gielen author: Rainer Hermanns version: $Date: 2006-03-18 17:28:55 +0100 (Sat, 18 Mar 2006) $ $Id: Token.java 2468 2006-03-18 16:28:55Z rgielen $ since: 2.2 See Also: com.opensymphony.webwork.interceptor.TokenInterceptor See Also: com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor |
evaluateExtraParams | protected void evaluateExtraParams()(Code) | | First looks for the token in the PageContext using the supplied name (or
com.opensymphony.webwork.util.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. If
the token is not in the PageContext, a new Token is created and set into the Session and the PageContext with
the name.
|
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
getTokenNameField | public String getTokenNameField()(Code) | | This will be removed in a future version of WebWork.
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|