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 fixed the logic in ChangePasswordFilter to not forward if the request is 
going to ChangePassword action.

Thanks,
Prasanth

On 05/08/2018 01:39 AM, Yasser Zamani wrote:
>
> 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.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>



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.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org