Thanks,

The one that did the trick was:
 <servlet-mapping>
     <servlet-name>MyServlet</servlet-name>
     <url-pattern>/ShopHere</url-pattern>
 </servlet-mapping>

Dale



----- Original Message -----
From: Kevin Duffey <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 4:35 PM
Subject: RE: Mapping


> You would want something like:
>
> <servlet-mapping>
>   <servlet-name>MyServlet</servlet-name>
>   <url-pattern>/ShopHere/</url-pattern>
> </servlet-mapping>
>
> If that doesn't work..try:
>
> <servlet-mapping>
>   <servlet-name>MyServlet</servlet-name>
>   <url-pattern>/ShopHere/*</url-pattern>
> </servlet-mapping>
>
>
> I don't recall which one works. Then, anytime a /ShopHere is in the
request
> URI, it goes to that servlet. Keep in mind, if you access a page like:
>
> http://xxx.xxx.xxx.xxx/ShopHere/somepage.jsp
>
> The sompage.jsp is NOT invoked, its passed to the MyServlet servlet as
part
> of the request. So ANY URL you type in that has /ShopHere in it will go to
> that servlet. It will be up to that servlet to forward or redirect to the
> right page after that point.
>
> > I place the following in my web.xml:
> >          <servlet-mapping>
> >                  <servlet-name>MyServlet</servlet-name>
> >                  <url-pattern>*.shop</url-pattern>
> >          </servlet-mapping>
> > Browsing to my.host.com/whatever.shop works fine (MyServlet is invoked).
> >
> > This is really what I want, but it does not work (I get a 404):
> >          <servlet-mapping>
> >                  <servlet-name>MyServlet</servlet-name>
> >                  <url-pattern>ShopHere</url-pattern>
> >          </servlet-mapping>
> >
> > This does not work either:
> >          <servlet-mapping>
> >                  <servlet-name>MyServlet</servlet-name>
> >                  <url-pattern>ShopHere.shop</url-pattern>
> >          </servlet-mapping>
> >
> > I want to be able to browse to my.host.com/ShopHere and have that invoke
> > MyServlet.
> >
> > I can except my.host.com/ShopHere.shop, but do not want everything with
> > *.shop to go to this servlet.
> >
> > I know I can make the servlet root directory from /servlet/ to / and it
> > should work fine with out the mappings, but I want to keep the default
> > /servlet/.
> >
> > Can this be done?
> > Dale
> >
> >
> >
>
>


Reply via email to