• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to fetch value from Text box of JSP page

 
Amrit Peeyush
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i am new to JSP and JavaScript so please help

can anyone tell me how to fetch the value of a text box of a jsp page and pass the value of the text box as parameter for some SQL procedur on the same page .


thanks and regards
amrit
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JSP forum.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amrit Peeyush:
pass the value of the text box as parameter for some SQL procedur on the same page

Think about that for a minute. How can a value to be entered into a text box be obtained in code that executes before the page is even sent to the browser? (Also be aware that no Java code should ever be placed on a JSP page. Use a servlet for such processing.)

You might find this article on how JSPs operate helpful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!