tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kc.baltz" <kc.ba...@inforonics.com>
Subject RE: servlet invoking
Date Thu, 25 May 2000 16:22:14 GMT

> Are you sure ?  My form still can't find my servlet.  He is 
> my specific example
> I am working with.

Not anymore! :) 


> 
> relevent piece of web.xml file
> 
>  <servlet>
>   <servlet-name>ValidateSignupLogin</servlet-name>
> 
> <servlet-class>com.intelis.webfe.servlets.signup.ValidateSignu
> pLogin</servlet-class>
> 
>   <load-on-startup>3</load-on-startup>
>  </servlet>
> 
>  <servlet-mapping>
>   <servlet-name>ValidateSignupLogin</servlet-name>
>   <url-pattern>/ValidateSignupLogin</url-pattern>
>  </servlet-mapping>
> 
> In my jsp
> 
> <form name="CreateAccount" action="/ValidateSignupLogin"  
> method="POST">
> .....
> .....
> .....
> </form>
> 
> The error I get is:
> 
> Error: 404
> 
> Location: /ValidateSignupLogin
> 
> File Not Found
> /ValidateSignupLogin
> 
> -- Hugh W. O'Brien
> 

I think I had it wrong because we use the root as our web context, so
getting to a servlet is http://localhost/MyServlet. I'll correct what I
suggested to the following:
Assume your context is named foo.

action="/foo/ValidateSignupLogin"  or
action="http://yourhost/foo/ValidateSignupLogin"

K.C.

P.S.  If that still doesn't work, I can keep guessing :)

Mime
View raw message