<html> <head></head> <body> <form name="form1" method="post" action="b.jsp"> <table width="100%" border="1"> <tr> <td>s:</td> <td><input type="text" name="s"></td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" name="submit" value="submit"> <input type="reset" name="reset" value="reset"> </td> </tr> </table> </form> </body> </html>
<% /* Code Heare */ s=request.getParameter("s"); System.out.println("s=" + s); %>