File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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
author & internet detective

Joined: May 26, 2003
Posts: 32819

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: regarding jsp and multiple buttons
It's not a secret anymore!