It's not a secret anymore!
The moose likes JSP and the fly likes jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp" Watch "jsp" New topic


dikshith ac

Joined: Nov 23, 2007
Posts: 1
how to get parameter from html using jsp?
Pranav Pal
Ranch Hand

Joined: Nov 04, 2007
Posts: 74
Implicit request/application/pageContext object is provided by the Container in all the JSPs.
You can use that object to get request/context-init/jsp-init parameters
request.getParameter(aString) etc.

Please go through a good book on Servlets & JSP for more deatails on paraneters and attributes

Hakuna Matata!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

"dikshith ac",
Please check your private messages.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
liu fei

Joined: Nov 28, 2007
Posts: 5
And you can use "session.getAttribute(aKey)" as well
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Originally posted by liuliu feifei:
And you can use "session.getAttribute(aKey)" as well

No that is not correct. Session attributes have nothing to do with request parameters.

[Asking smart questions] [About Bear] [Books by Bear]
liu fei

Joined: Nov 28, 2007
Posts: 5
I agree. Here's the link:
subject: jsp
jQuery in Action, 3rd edition