lets build the 'HTML form' first..
***myform.jsp
< body>
---some other codes
< form action="myformconfirm.jsp" method="post">
Enter in a website name:< br>
< input type="text" name="website">< br>
< input type="submit" value="Submit this" name="submit" />
< /form>
---some other codes
< /body>
***myformconfirm.jsp <<<
< body>
Your info has been received:
< br>< br>
<%
String sName = request.getParameter("website");
out.print(sName);
%>
< /body>
***important>>
notice the use of request.getParameter() method..
Monday, February 18, 2008
Creating & Processing a Form using JSP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment