Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes assign html input text box value into jsp var Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "assign html input text box value into jsp var" Watch "assign html input text box value into jsp var" New topic

assign html input text box value into jsp var

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Dec 13, 2000
Posts: 20
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

Joined: Jan 07, 1999
Posts: 6920
"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 . 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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Have you tried LearnNowOnline?
subject: assign html input text box value into jsp var