aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
variables
param Map in EL
Capturing form element in the scriptlet
Urgent!!
Edit/Delete values in database using jsp