This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 63544

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
It's not a secret anymore!