dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to display value returned from previous page

  1. #1
    Join Date
    Aug 2005
    Posts
    26

    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

  2. #2
    Join Date
    May 2004
    Location
    Perth, WA
    Posts
    171
    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") %>" />

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles