mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Update all S2 Wiki docs and S2/XW JavaDocs to reflect camelCase interceptor and result names.
Issue Number: WW-2491 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@642323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1462,7 +1462,7 @@ public class <strong>AuthenticationInterceptor</strong> implements Interceptor {
|
||||
<interceptor-ref name="defaultStack"/>
|
||||
</interceptor-stack>
|
||||
<interceptor-stack name="<strong>user-submit</strong>" >
|
||||
<interceptor-ref name="token-session" />
|
||||
<interceptor-ref name="tokenSession" />
|
||||
<interceptor-ref name="user"/>
|
||||
</interceptor-stack>
|
||||
<interceptor-stack name="<strong>guest</strong>" >
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.opensymphony.xwork2.ActionContext;
|
||||
import com.opensymphony.xwork2.ActionSupport;
|
||||
|
||||
/**
|
||||
* Example to illustrate the <code>token</code> and <code>token-session</code> interceptor.
|
||||
* Example to illustrate the <code>token</code> and <code>tokenSession</code> interceptor.
|
||||
*
|
||||
*/
|
||||
public class TokenAction extends ActionSupport {
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ import org.apache.struts2.dispatcher.mapper.ActionMapping;
|
||||
* <pre>
|
||||
* <!-- START SNIPPET: example -->
|
||||
* <action name="someAction" class="com.examples.SomeAction">
|
||||
* <interceptor-ref name="mapping-params"/>
|
||||
* <interceptor-ref name="mappingParams"/>
|
||||
* <result name="success">good_result.ftl</result>
|
||||
* </action>
|
||||
* <!-- END SNIPPET: example -->
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
<interceptor-ref name="basicStack"/>
|
||||
</interceptor-stack>
|
||||
|
||||
<!-- An example of the params-prepare-params trick. This stack
|
||||
<!-- An example of the paramsPrepareParams trick. This stack
|
||||
is exactly the same as the defaultStack, except that it
|
||||
includes one extra interceptor before the prepare interceptor:
|
||||
the params interceptor.
|
||||
@@ -242,7 +242,7 @@
|
||||
may do more than you need. Also, the ordering can be
|
||||
switched around (ex: if you wish to have your servlet-related
|
||||
objects applied before prepare() is called, you'd need to move
|
||||
servlet-config interceptor up.
|
||||
servletConfig interceptor up.
|
||||
|
||||
This stack also excludes from the normal validation and workflow
|
||||
the method names input, back, and cancel. These typically are
|
||||
|
||||
@@ -108,7 +108,7 @@ public class TestConfigurationProvider implements ConfigurationProvider {
|
||||
ActionConfig tokenSessionActionConfig = new ActionConfig.Builder("", "", TestAction.class.getName())
|
||||
.addResultConfig(new ResultConfig.Builder("invalid.token", MockResult.class.getName()).build())
|
||||
.addResultConfig(new ResultConfig.Builder("success", MockResult.class.getName()).build())
|
||||
.addInterceptor(new InterceptorMapping("token-session", new TokenSessionStoreInterceptor()))
|
||||
.addInterceptor(new InterceptorMapping("tokenSession", new TokenSessionStoreInterceptor()))
|
||||
.build();
|
||||
|
||||
PackageConfig defaultPackageConfig = new PackageConfig.Builder("")
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
<package name="config-browser" extends="struts-default" namespace="/config-browser">
|
||||
<interceptors>
|
||||
<interceptor-stack name="config-browser-default">
|
||||
<interceptor-stack name="configBrowserDefault">
|
||||
<interceptor-ref name="validationWorkflowStack"/>
|
||||
</interceptor-stack>
|
||||
</interceptors>
|
||||
<default-interceptor-ref name="config-browser-default"/>
|
||||
<default-interceptor-ref name="configBrowserDefault"/>
|
||||
|
||||
<global-results>
|
||||
<result name="error" type="freemarker">/config-browser/error.ftl</result>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
may do more than you need. Also, the ordering can be
|
||||
switched around (ex: if you wish to have your servlet-related
|
||||
objects applied before prepare() is called, you'd need to move
|
||||
servlet-config interceptor up.
|
||||
servletConfig interceptor up.
|
||||
|
||||
This stack also excludes from the normal validation and workflow
|
||||
the method names input, back, and cancel. These typically are
|
||||
|
||||
Reference in New Issue
Block a user