Is there any way to hide the param
values in struts.xml
as they are visible on the URL when I pass them from one action to another?
<action name="BackToManagerIndex" class="Action.LoginAction" method="ManagerList">
<result type="redirectAction">
<param name="actionName">login</param>
<param name="namespace">../Manager</param>
<param name="User_Id">%{User_Id} </param>
<param name="Password">%{Password}</param>
</result>
Here when ever the BackToManagerIndex
action is completed I am redirecting it to another action called login
which is in namespace manager with 2 properties: User_Id
and Password
.
Every thing is fine but the values of both the properties are visible on the URL as
http://localhost:8084/MEMS/Manager/login.action?User_Id=abc%40gmail.com&Password=1234
Is there any way to hide these values or the URL can be set to
http://localhost:8084/MEMS/Manager/login.action
?
(I still should get the values at other action)
Parameters that are included with the
redirectAction
result type are reflected in the URL. To remove them from the URL you need to remove them from the result config.Another action after redirecting should take parameters from the session.