This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refreshing page

 
Jyoti Jadhav
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in jsp page(enter_product_data.jsp) i am entering product details and on submit i am checking product id for duplicate records and if product id exists in database i am showing a page having error message.

for coming from servlet to error message page i used requestdiapatcher's forward method.

that page contains back button.

back button onclick i wrote script.
function backgo()
{
document.form1.action="enter_product_data.jsp"
document.form1.submit()
}

but when i come to this enter_product_data.jsp page again i want all the datails as it is.what is the way to get it.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jyoti,
The best way is to store the values in the HttpSession before going to the error page. That way the next time you paint the JSP, they are available to you.
 
Jyoti Jadhav
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Jyoti,
The best way is to store the values in the HttpSession before going to the error page. That way the next time you paint the JSP, they are available to you.


Hey Jeanne,

Thanks a lot..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic