• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to get empty fields when redirecting to previous page

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic