• Post Reply Bookmark Topic Watch Topic
  • New Topic

Print values on same page  RSS feed

 
vivek nehra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
i am new in jsp&servlets
i want to print input field value using button so i have to use seperate input field and button or i have to use form ?
and then print that input field value on same page ?
how to do please tell me

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to react to user input without a page reload, you'll need to use JavaScript for that. JSP processing ends when the page is sent from the server to the browser.

Please read this article to understand how JSP works.
 
vivek nehra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which type of js code
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There really isn’t an answer to such a vague question. Do you have a more specific question?

A suggestion: make a list of the things that need to get done to make this happen. For example “get notified when the user changes the value of an input field”.

Then you can figure how to make each step happen and ask for help on parts you get stuck on.
 
Dave Tolls
Ranch Foreman
Posts: 3009
37
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!