You can have two form image fields in one form though. When clicked they
will both use whatever you designate as the action of the field, but you
can access parameters of the form x.imagename y.imagename that
correspond to the x & y values of the point the image was clicked on. So
in whatever object it is that you have receiving the action of the form
just use getParameter() to determine which one of the buttons(images)
the user clicked and act accordingly.

_j



Peter Choe wrote:
>
> as far as i know you can only have one submit button per form.  but you can have
> more than on form per page.  so, i would say make different forms on the page.
>
> peter choe
>
> Howard Lee wrote:
>
> > Hi,
> >
> > I know this is more of an HTML question than JSP's but since many people on
> > here are web gurus, I thought I asked here. How would you have two submit
> > buttons to have two different URLs? I have two <input type="submit">
> > buttons, and each calling different JSP's. Because I can only have one
> > action in <form>, I couldn't see how I can do that. How would I have two
> > submit buttons to have two different URL's? Thank you very much!
> >
> > howard
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to