Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Print values on same page  RSS feed

 
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
 
Author and ninkuma
Marshal
Posts: 66537
160
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: 66537
160
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.
 
Rancher
Posts: 3385
38
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!