Re: Request parameter value different from instance variable value

2018-05-08 Thread Prasanth Pasala
I think I might have found the reason. The page it is forwarded to have page=ChangePassword as a query string. So I think struts is getting data from the query string and the post data and combining them to form the ChangePassword, ChangePassword as the value for the page variable. I have

Re: Request parameter value different from instance variable value

2018-05-08 Thread Yasser Zamani
On 5/7/2018 8:35 PM, Prasanth wrote: > When I get the value from request object (request.getParameter("page");) it > returns "ChangePassword". What does 'String[] pages = request.getParameterValues("page");' return (it's length and values)? Regards.

Re: Request parameter value different from instance variable value

2018-05-07 Thread Prasanth Pasala
This seems to be happening only when the PasswordChangedFilter forwards the request to this action. If the action is accessed directly it works fine. Thanks, Prasanth On 05/07/2018 11:05 AM, Prasanth wrote: > Hi, > > I am using struts 2.3.34 and have an form with few text fields and a hidden >

Request parameter value different from instance variable value

2018-05-07 Thread Prasanth
Hi, I am using struts 2.3.34 and have an form with few text fields and a hidden field. All the values are set correctly in the action class except for the hidden field value. Below is the html code in the form In the action the value set to page variable is "ChangePassword, ChangePassword".