*
The moose likes Struts and the fly likes Avoiding param in URL when action-redirect.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Avoiding param in URL when action-redirect.... " Watch "Avoiding param in URL when action-redirect.... " New topic
Author

Avoiding param in URL when action-redirect....

anand kumarblr
Greenhorn

Joined: Oct 27, 2006
Posts: 27
I have a mapping like this.
<result name="input" type="redirectAction" >
<param name="actionName">dispAcctTypePage</param>
<param name="accBean.zipCode">${accBean.zipCode}</param>
</result>

But the param come in url which is a security risk. please help how to eliminate param in browser URL.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Don't pass it as a parameter.

If you *are* going to pass it as a parameter and don't want the user to recognize it then you'll need to encrypt it.

The last I heard zip codes aren't exactly secret, though, and I've never really run across a case where a zip code needs to be secret.
anand kumarblr
Greenhorn

Joined: Oct 27, 2006
Posts: 27
Thanks for your reply.
I am using Actionredirect because i need to show some prepopulated values in select box in input page.....

If i must not pass as parameter then how could i pass values from one action to another action.
Actually iam using MessageStoreInterceptor to remember the validation messages, but to remeber field values iam passing the param like i shown before. i have many paameters... i dont want user to see that in his URL.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Avoiding param in URL when action-redirect....
 
Similar Threads
how to download a file in struts2
let's discuss to implementing multiple controllers by using struts1.0
Struts2 Action Mapping Problem - No configuration found for the specified action
web.xml configuration Problem
First Wicket Problem