Dear Pam,
if u want ur image to work as a submit button then u can use this
<input type="image" border=0
height=14 src="/pics/buttons/submit.gif">.
now this image will act as a submit button, and in the form action in the
JSP page u can specify the name of the servlet, which u want the page to be
submitted to.I hope this should work,
enjoy programming,
Rahul
----- Original Message -----
From: Pamela Cotture <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 8:09 PM
Subject: How to call a servlet from a JSP page ?
> I'd like to call a servlet from a JSP page when I click on an image that
> represents my submit button.
>
> I've tested the following code in my jsp page but I got an 404-Error :
>
> <a href="http://127.0.0.1:7001/servletclasses/myServlet.class"<img
border=0
> height=14 hspace=8 src="/pics/buttons/submit.gif"></a>
>
> Anyone can help me ?
>
> Thanks
>
> Pamela
>
> mailto:[EMAIL PROTECTED]
>
>
===========================================================================
> 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