I'm running a stand-alone (no Apache front-end) TC 5.0.19 server on a WinXP 
box.  I have a webapp that has a /teams directory that contains gameScores.htm, 
teamStandings.htm and scoreForm.htm.  I also have a /playoffs directory (can 
you tell this is a sports-related site?) directory that has the **exact same 
files**.  

Now, I'd like to keep a single copy of the 3 files in one directory and have 
some <servlet-mapping>s  in web.xml that would "forward" the request from 
/playoffs to /teams **WITHOUT** the HTTP client being aware of a 'redirect.'  
That is, I don't want to issue an HTTP redirect, and WinXP doesn't have file 
linking like Unix.  Is there some hook in the Default servlet (or other 
TC-supplied class) that would allow one to do something like the following:

  <servlet>
    <servlet-name>playoffs</servlet-name>
    <servlet-class>...DefaultServlet (or whatever)</servlet-class>
    <init-param>
      <param-name>FORWARD</param-name>
      <param-value>/teams</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>playoffs</servlet-name>
    <url-pattern>/playoffs/*</url-pattern>
  </servlet-mapping>


The idea is I'm being very lazy and hoping that there is a feature in the 
default servlet (or other TC-supplied filter/class) that will allow this 
without me having to write same.  (Of, if someone has some code they'd like to 
share...)

Thanks.

Reply via email to