• Post Reply Bookmark Topic Watch Topic
  • New Topic

button

 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i have created a button on my jsp page that when it is clicked it has to execute an sql query.how can i do that directly from the jsp page???
 
moh sak
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

if you mean in "directly" without submitting the form and redirect the page I think it's imposible. !! but you can do it by redirecting the page to it self and execute the query when the form is submitted.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question tells me that you need to spend some more time learning about basic web programming. I would spend some time following a few JSP/Servlet tutorials. Then, if you haven't already, follow a few JDBC tutorials.

Once you get the whole request/response concept under your belt, answers to questions like become obvious.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!