Posted on 2001-08-13
Had a question. woudl appreciate help plz..
I have a JSP PAGE..
IT HAS A HTML Form with a update button (say a.jsp)
onclick of update .. it calls b.jsp..
now b.jsp validates form values in a.jsp ...and puts in database..and then
in b.jsp so that a.jsp refreshes..
what I want to do is..
in b.jsp.. like I have query string.
update = ...
I want to pass some name-value pair to a.jsp
so that I can get a value of it in a.jsp
I know I can do this..
response.sendRedirect("a.jsp?update="+update + "&name1="+value1..etc);
but I don't want to do this because I have some for loop for getting this name, value pair..
I want to do something like:
I tried to do this in b.jsp
and then in a.jsp like ..
out.println("num 0: " + pageContext.getAttribute("name_0",PageContext.REQUEST_SCOPE));
I am getting null value for name_0 ..
any help plz