This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "regarding jsp and multiple buttons " Watch "regarding jsp and multiple buttons " New topic
Author

regarding jsp and multiple buttons

riyajudeen yousuf
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 32088
    
207

Riyajudeen,
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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: regarding jsp and multiple buttons