Title: URL mappings

I am trying to figure out a solution for a URL mapping scheme for my webapp.

I am trying to achieve the following maps:

*context*/??????           --->      Servlet1
*context*/ice              --->      Servlet2
*context*/images/??.gif    --->      Straight through
*context*/movies/??.swf    --->      Straight through


I have tried several different configurations, if I use

  <servlet-mapping>
    <servlet-name>Servlet1</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>

it will map all of the above url's to servlet 1 and ignore all other maps.  I want to be able to divide these url's in the web.xml.  Maybe there is a way to use regular expressions when specifying a URL pattern or something equivalent? That would be nice.

I would appreciate any advice.

Thanks,
Ryan

Reply via email to