Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

assign html input text box value into jsp var

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a html input text box and jsp variable declared in a jsp, how can i assign the value of the text box into the variable after user change or enter the value???
i need this processing to be done on the same jsp. is it possible under jsp without activate another jsp or servlet??
 
Asif Masood
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Definitely you will get the value when the user will submit the rewuest to the server from the client side. If you call the same jsp file or place this variable access code in other file, then you can access the input from input field request object, with request.getParamter(); method.
Hope this will help you and ask if you need more help
Asif Masood
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"gene g",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic