[ 
https://issues.apache.org/struts/browse/WW-2654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43927#action_43927
 ] 

Musachy Barroso commented on WW-2654:
-------------------------------------

You can ask about this on the user list, but just a heads up, when you "add" an 
interceptor, you also need to add the "params" interceptor, or an stack that 
includes it, otherwise the params won't be set on your action.

> Intercept form action, data get lost.
> -------------------------------------
>
>                 Key: WW-2654
>                 URL: https://issues.apache.org/struts/browse/WW-2654
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.1
>         Environment: Tomcat 5.5, Eclipse 3.2
>            Reporter: benny lau
>
> Case 1:
> I created a simple login page with username and password textfield.
> when the submit button is clicked, the action will retrieve the field data 
> and print it out.
> The above scenario is working fine.
> Case 2:
> added an interceptor 
> "org.apache.struts2.interceptor.ServletConfigInterceptor" to retrieve 
> servletrequest object.
> when the button clicked, the action retrieve the field data always "empty 
> string".
> Case 3:
> Added a custom interceptor implemented interceptor interface.  the 
> "intercept" method return ActionInvocation.invoke() only.
> when the button clicked, the field data still always "empty string".
> I suspect the intercept function will reset the field data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to