File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get empty fields when redirecting to previous page

 
sirisha kukunuri
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic