how to display value returned from previous page
I have a form, 1st page called first.jsp. in this form I have multiple fields. once user enters the first field, I call to the second.jsp to process by using 'onchange="location.href='second.jsp?first_field='+this.value"'
in second.jsp, it will get the value for 2nd field and return to first.jsp. I manage to get the value returned to first.jsp but not able to display in the second field textbox.
how do I do it
Just send the values back to the first.jsp in the same way you did the first time.
Then have something like this in the first.jsp:
<input type="text" name="second_field" value="<%= request.getParameter("second_field") %>" />
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)