wood burning stoves 2.0*
The moose likes JSP and the fly likes regarding jsp and multiple buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding jsp and multiple buttons " Watch "regarding jsp and multiple buttons " New topic

regarding jsp and multiple buttons

riyajudeen yousuf

Joined: Jun 28, 2006
Posts: 8
hii to all

i hav one doubt

i hav one black.jsp file in tat 3 buttons are there like first ,second ,third
if i click first button it ll go to one jsp
if i click second button it ll go to another jsp file like tat the third button

the condition is black.jsp contains only one form tag

how can i do this pls help me
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29275

When the user clicks a button, you can call a JavaScript function to update the value of document.form.action. This will direct the existing form to the proper JSP.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Consider Paul's rocket mass heater.
subject: regarding jsp and multiple buttons
Similar Threads
Highlight the button which need to be click, in swing applicaton..
get the radio button value in three differnt jsp
Three forms in jsp page
Reg : Jsp file
Passing a collection in request