Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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
Author

assign html input text box value into jsp var

Anonymous
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
Greenhorn

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

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 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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assign html input text box value into jsp var
 
Similar Threads
Edit/Delete values in database using jsp
param Map in EL
Urgent!!
variables
Capturing form element in the scriptlet