tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BacardiWasabi <sethu_tom...@yahoo.com>
Subject Re: Servlet Mapping...:(
Date Fri, 16 Nov 2001 05:19:11 GMT
I completely understand that my URL should be

http://localhost:8080/framework/action

not 

http://localhost:8080/framework/servlet/action for
below web.xml

web.xml

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

My ActionServlet servlet class resides under
web-inf/classes.

I still dont understand ...why im getting "Page Cannot
be Found" error page when i access servlet like

http://localhost:8080/framwork/TestAction

Is there any other change that i should make apart
from web.xml?

servlet is not in any package. Im placing it under
classes folder.



--- "Craig R. McClanahan" <craigmcc@apache.org> wrote:
> 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>
> 


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


Mime
View raw message