Can a JSP page process HTML FORM data?
Services | Updates | Contact

Question: Can a JSP page process HTML FORM data?

Can a JSP page process HTML FORM data?
Answer:Yes. However, unlike servlets, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the request implicit object within a scriptlet or expression as: <% String item = request.getParameter("item"); int howMany = new Integer(request.getParameter("units")).intValue(); %>

Post Your Answer/Comments

Comment Title:
Comment:
Save   Cancel
 
  Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate | XML
Send your comments, Suggestions or Queries regarding this site at editor@roseindia.net
Copyright © 2007. All rights reserved.