- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to read form data using JSP?
JSP handles requests using getParameter() method to read simple parameters and getInputStream() method to read binary data stream coming from the client.
Reading Form Data using JSP
JSP handles form data parsing automatically using the following methods depending on the situation −
getParameter(): You call request.getParameter() method to get the value of a form parameter.
getParameterValues(): Call this method if the parameter appears more than once and returns multiple values, for example, checkbox.
getParameterNames(): Call this method if you want a complete list of all parameters in the current request.
getInputStream(): Call this method to read binary data stream coming from the client.
- Related Articles
- How to read form data using JSP via GET Method?
- How to read form data using JSP via POST Method?
- How to read all form parameters in JSP?
- How to read a HTTP header using JSP?
- How to read request parameters passed in URL using JSP?
- How to read cookies with JSP?
- How to pass check boxes data using JSP?
- How to read data from *.CSV file using JavaScript?
- How to read data from a file using FileInputStream?
- How to read data from JSON array using JavaScript?
- How to read/retrieve data from Database to JSON using JDBC?
- How to delete Session data in JSP?
- How to read data in from a file to String using java?
- How to read data from user using the Console class in Java?
- How to read data from all files in a directory using Java?

Advertisements