Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remove form fields from URL during forward

S Sathya
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic