tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Servlet Mapping...:(
Date Thu, 15 Nov 2001 18:54:49 GMT
With the servlet mapping you've defined, the correct URL is:

  http://localhost:8080/framework/action

not

  http://localhost:8080/framework/servlet/action

Craig


On Wed, 14 Nov 2001, BacardiWasabi wrote:

> Date: Wed, 14 Nov 2001 23:02:57 -0800 (PST)
> From: BacardiWasabi <sethu_tomcat@yahoo.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Servlet Mapping...:(
>
> time for a silly question...
>
>
>
> file - web.xml
>
>
> <servlet>
>             <servlet-name>TestAction</servlet-name>
>
> <servlet-class>ActionServlet</servlet-class>
> </servlet>
>
>
> <servlet-mapping>
>             <servlet-name>TestAction</servlet-name>
>             <url-pattern>/TestAction</url-pattern>
>     </servlet-mapping>
>
>
> ActionServlet - web-inf\classes
>
> Context path - framework
>
> a) when my url is
> http:...:8080/framework/servlet/TestAction - it is
> working fine
>
> b) but when i make change to servlet mapping to above
> web.xml as
>
> <servlet-mapping>
>             <servlet-name>TestAction</servlet-name>
>             <url-pattern>/action</url-pattern>
>     </servlet-mapping>
>
>
>
> and invoke
> http:...:8080/framwork/servlet/action - im getting
> page cannot be found
>
> restarted my server...
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message