File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts url" Watch "struts url" New topic
Author

struts url

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
When user uses url to access my action like /mpapp/getOrderAction?custId=john123&date=...
they can see the order page.

How can I hide their input parameter information in URL but still process the order and show them the order JSP page ? with this said, they can use the above URL containing those id parameters to access my action, but when page returns, the URL does not contain any of those parameters, so another person won't be able to see it on url. How to do that ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Use a POST request?
FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
Dave, not sure if you got me correctly. I still would like to allow user to use URL like

http://mpapp/getOrderAction?param1=..¶m2=...

I want to execute the method and return the order results and at same time and on the *same brower window*, somehow alter the URL without showing the parameter values. I think struts uses POST behind the scene, right ? So could you give more details on what you suggested ?

Thank You.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The Struts action doesn't care about how the request is made. If you want to redirect *after* a GET request, then do so, but you'll have to store the values somewhere like session.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts url