Thread: java servlets

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    chennai, tamil nadu, INDIA
    Posts
    27
    Rep Power
    0
    how can i transfer the particular form's textbox value to another form's textbox thru servlet coding ?

    Comments on this post

    • JimmyGosling agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    15
    Rep Power
    0
    you want to treat it as you would if sending to a confirmation type page and simply send it back to another textbox...

    something like:-

    Applet #1:

    out.println("<html>");
    out.println("<head>");
    out.println("</head>");
    out.println("<body>");
    out.println("<form action="http://www.yoursite/blah/newform#2" method="GET">");
    out.println(" <div align="center"><center><table border="0">");
    out.println(" <tr>");
    out.println(" <td><p align="center">Please write your description in box below.</p></td>");
    out.println(" </tr>");
    out.println(" <tr>");
    out.println(" <td><textarea name="description" rows="4" cols="52"></textarea></td>");
    out.println(" </tr>");
    out.println(" </table>");
    out.println(" </center></div>");
    out.println("</form>");
    out.println("</body>");
    out.println("</html>");


    Applet #2:

    out.println("<html>");
    out.println("<head>");
    out.println("</head>");
    out.println("<body>");
    out.println("<form action="http://www.yoursite/blah/newform#3" method="GET">");
    out.println("<tr valign="top"> <td><strong>Your description, would you like to edit it?:</strong></td> <td valign="top" width="250"><textarea name="edit" rows="4" cols="52">" + description + "</textarea></td> </tr>");
    out.println("</form>");
    out.println("</body>");
    out.println("</html>");

    Applet #3

    and so on........

    that's how I would do it anyway..

    cheers

    Comments on this post

    • JimmyGosling agrees

IMN logo majestic logo threadwatch logo seochat tools logo