29.01.2014 Views

6-J2ME-NETWORKING-P1

6-J2ME-NETWORKING-P1

6-J2ME-NETWORKING-P1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Reading form data in servlets<br />

<br />

request.getParameter(“FirstName")<br />

• Returns URL-decoded value of first occurrence of<br />

FirstName parameter in query string<br />

• Works identically for GET and POST requests<br />

<br />

• Returns null if no such parameter is in query data<br />

request.getParameterValues(“FirstName")<br />

• Returns an array of the URL-decoded values of all<br />

occurrences of FirstName parameter in query string<br />

• Returns a one-element array if param not repeated<br />

• Returns null if no such parameter is in query<br />

<br />

request.getParameterNames() or<br />

request.getParameterMap()<br />

• Returns Enumeration or Map of request params<br />

• Usually reserved for debugging.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!