Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp

 
dikshith ac
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to get parameter from html using jsp?
 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
like:
request.getParameter(aString) etc.

Please go through a good book on Servlets & JSP for more deatails on paraneters and attributes
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dikshith ac",
Please check your private messages.
 
liu fei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you can use "session.getAttribute(aKey)" as well
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
liu fei
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh,sorry...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic