Two Laptop Bag*
The moose likes Struts and the fly likes Remove form fields from URL during forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Remove form fields from URL during forward" Watch "Remove form fields from URL during forward" New topic

Remove form fields from URL during forward

S Sathya

Joined: Jun 05, 2009
Posts: 1
The login information entered by the user in login.jsp is validated by an action ValidateUser. It has the following entry in struts-config file.

<action path="/validateUser"
<set-property property="secure" value="true"/>
<forward name="success" path="/success.jsp" />
<forward name ="failure" path="/" />

In ValidateUser class, I check the user credentials and forward the request to success or failure based on the result. My issue is when it forwards to failure, it gets forwarded correctly but the information entered in login.jsp is appended to the url as query string like

Can some please help me in removing these fields from the url? I've used post method in login.jsp to submit the form.
Consider Paul's rocket mass heater.
subject: Remove form fields from URL during forward
Similar Threads
Error: creating bean of class (HELP THE NEWBE)
Struts Exception
Deploying struts1.29 appl to struts 1.3.10
Data Source trouble - javax.servlet.UnavailableException: Initializing applic (SOLVED)
newbie problem - populating Action form