wood burning stoves 2.0*
The moose likes JSP and the fly likes Get textbox value in the Same JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Get textbox value in the Same JSP Page" Watch "Get textbox value in the Same JSP Page" New topic

Get textbox value in the Same JSP Page

anish shah shah anish

Joined: Apr 18, 2011
Posts: 1

How Can i get the value of textbox & Store it in String. !

I basically want to Store textbox value in Session without Redirecting the Page or clicking on Any Button.

So, to Store in Session we need String Data type values.

For that I Want to get textbox value in String Variable. !

Can anyone tell me how can it be Done ???
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60782

OK, no submission and no button click. What event will trigger the activity you want?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Stefan Evans

Joined: Jul 06, 2005
Posts: 1016
Obviously a javascript onchange or onblur event on the textfield to trigger an ajax call to the server to pass in the value just typed in.

No button clicks.
The page doesn't reload/redirect

I agree. Here's the link: http://aspose.com/file-tools
subject: Get textbox value in the Same JSP Page
Similar Threads
to get value from text box using javascript
get the radio button value in three differnt jsp
Including Request parameters to the response
How to set a property's value thats part of a ArrayList using Javascript.
Need Help With Dynamic text box in JSP