Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get textbox value in the Same JSP Page

 
anish shah shah anish
Greenhorn
Posts: 1
Chrome PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey.
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
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, no submission and no button click. What event will trigger the activity you want?
 
Stefan Evans
Bartender
Posts: 1713
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic