• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use a text box value set by java script  RSS feed

 
badchip2008
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m using jsp and java scripts. script is returning some value which i have displayed in a text box in jsp. No i have to use that value in SQL query in the same jsp page.
how can i do it???
please try to help me !!

regds

badchip
 
Reinhard Horn
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi badchip,

SQL is generally misplaced in a JSP. Combine your JSP with a Servlet and a simple Java Bean which
contains an SQL execution method.


Regards
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As already mentioned by Reinhard that it is a bad idea to use SQL in JSP. If required you can get the text box value using DOM.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"badchip indian", please check your private messages for an important administrative matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!