aspose file tools*
The moose likes Struts and the fly likes how to get empty fields when redirecting to previous page 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 "how to get empty fields when redirecting to previous page" Watch "how to get empty fields when redirecting to previous page" New topic
Author

how to get empty fields when redirecting to previous page

sirisha kukunuri
Greenhorn

Joined: Jun 04, 2008
Posts: 13
Hi All,
I am trying to do small struts application.In that i have a jsp page in which user can register with name and password.He has to enter the password two times.If the two passwords entries are not same then registration will fail. failure.jsp will be shown.
In my application until this step every thing is working fine.I inserted a link to register.jsp in failure.jsp.When i am clicking on this link i can see register.jsp but the username passwords fields are not empty this time. Those are filled with previous values.
How can i get empty fields when i am redirecting to the register.jsp page.
Can anybody please tell me.
Thanks for reading this.
Thanks,
Kukunuri.
[ September 09, 2008: Message edited by: sirisha kukunuri ]
Domino Lacer
Greenhorn

Joined: Aug 20, 2008
Posts: 4
Make sure your form is in request scope. There is also an IE specific tag that will not remember the values, but I can't recall what it is. You can also clear the fields on load in javascript.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get empty fields when redirecting to previous page