Remove the .class from the URL

this is the way to do it

<form method="POST" action="servlet/myServlet">
...
...
<input type="image" border="0" src="submit.gif">
</form>


----- Original Message -----
From: "Pamela Cotture" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 7:39 AM
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


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
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