|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
how can i transfer the particular form's textbox value to another form's textbox thru servlet coding ?
|
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > java servlets |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|