How to go to previous page in JSP

I have designed a page with database in JSP,

I am having 3 textboxes on the form where user can enter ID,name and address.

Suppose user enters values such as ID="xyz" name="atm" address="ksh". Then it should prompt "Enter numerical values" and it should remain on the same page. I tried this with the "response.sendRedirect(url)" method ,Its working but the the textboxes are becoming empty.

I want such that the textboxes should not be empty ,they should contain the previously entered values.

Means I want to call "back" page or previously visited page.

It can be done using JavaScript but I want to do it in JSP.

So plzz help me

How to call back page in JSP

[710 byte] By [Atmaling_Kshirsagara] at [2007-11-27 8:59:23]
# 1
no, you don't want that.You want to learn how to prepopulate html form elements using JSTL and servlets.
jwentinga at 2007-7-12 21:26:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Or you could create something in javascript to do a check before you send the request.
ita6cgra at 2007-7-12 21:26:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
1. U need to preopulate the data in ur jsp using form beans or from request, session....or.2. Use javascript to do the validationEither of them will solve ur problem
vinayak_ra at 2007-7-12 21:26:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...