try http://localhost:8080/search/hello/HelloWorld let me know if this works. Lance
-----Original Message----- From: Sanjay Bahal [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 10:13 AM To: Tomcat Users List Subject: RE: Servlet Deploy Problem Help Lance, So in other words if I may to /hello/* I would be able to call my servelet with /hello? or the full URL http://localhost:8080/search/hello? I tried it did not work- requested resource (/hello) is not available. Thanks a lot, Sanjay --- Lance Smith <[EMAIL PROTECTED]> wrote: > Sanjay, > The servlet-mapping is a tag that allows you to map > a specified pattern to the specified servlet. Don't > get me started on the pattern syntax I still haven't > taken the time to fully comprehend it. So basically > what we told the server was that anytime it sees the > pattern "/hello/" in the context of this app send it > to the HelloWorld servlet. The <anything> means > anything > you want to type after the "/hello/" since we told > it to > match on the "/hello/". > Lance > > -----Original Message----- > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 21, 2002 9:01 AM > To: Tomcat Users List > Subject: RE: Servlet Deploy Problem Help > > > Lance Thanks. > What does servlet-mapping mean- is it directory > structure or an alias to a servlet.I was trying to > use > /hello as an alias for the HelloWorld servlet and > try > calling it by /hello or by full URL /hello- am I > completely off on this. and what is this <anything>? > Thanks again > > > <servlet-mapping> > <servlet-name>HelloWorld</servlet-name> > <url-pattern>/hello/*</url-pattern> > </servlet-mapping> > > Then you should be able to call it like: > http://localhost:8080/search/hello/<anything> > > --- Lance Smith <[EMAIL PROTECTED]> > wrote: > > In you're web.xml change: > > <servlet-mapping> > > <servlet-name>HelloWorld</servlet-name> > > <url-pattern>/hello</url-pattern> > > </servlet-mapping> > > > > to : > > <servlet-mapping> > > <servlet-name>HelloWorld</servlet-name> > > <url-pattern>/hello/*</url-pattern> > > </servlet-mapping> > > > > Then you should be able to call it like: > > http://localhost:8080/search/hello/<anything> > > > > Hope this helps > > Lance > > > > > > -----Original Message----- > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 21, 2002 8:21 AM > > To: [EMAIL PROTECTED] > > Subject: Servlet Deploy Problem Help > > > > > > I am just restarting this thread. My problem > remains > > unsolved. I am running Tomcat4.01/NT. The setup > > should > > be OK as the examples run. > > I am trying to deploy the HelloWorldExample. > > My directory structure is- > > Tomcat4\webapps\search\WEB-INF\classes > > I have my .htm file in the \search directory and > my > > class in the \classes and my web.xml in the > > \WEB-INF. > > My web.xml looks like this- I have used the > example > > file to create it- > > <servlet> > > <servlet-name>HelloWorld</servlet-name> > > <description> > > HelloWorld > > </description> > > > > <servlet-class>HelloWorldExample</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>HelloWorld</servlet-name> > > <url-pattern>/hello</url-pattern> > > </servlet-mapping> > > Is this web.xml correct? > > > > I have not been able to execute my servelt any > which > > way: > > /hello > > > http://localhost:8080/search/servlet/HelloWorldExample > > http://localhost:8080/search/servlet/HelloWorld > > http://localhost:8080/search/HelloWorld > > I either get a resource not found or > > java.util.MissingResourceException: Can't find > > bundle > > for base name LocalStrings, locale en_US > > at > > > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7 > > 07) > > at > > > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604) > > at > > > java.util.ResourceBundle.getBundle(ResourceBundle.java:559) > > at HelloWorldExample.doGet(Unknown Source) > > > > My question is how do I exceute it- from the > > /search > > directory or from anywhere else using a full url > > path. > > Thanks a lot, > > Sanjay > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Movies - coverage of the 74th Academy > Awards. > > http://movies.yahoo.com/ > > > > -- > > To unsubscribe: > > > <mailto:[EMAIL PROTECTED]> > > For additional commands: > > <mailto:[EMAIL PROTECTED]> > > Troubles with the list: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > To unsubscribe: > > > <mailto:[EMAIL PROTECTED]> > > For additional commands: > > <mailto:[EMAIL PROTECTED]> > > Troubles with the list: > > <mailto:[EMAIL PROTECTED]> > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards. > http://movies.yahoo.com/ > > -- > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > For additional commands: > <mailto:[EMAIL PROTECTED]> > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > For additional commands: > <mailto:[EMAIL PROTECTED]> > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards. http://movies.yahoo.com/ -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>