Hi Martin,

This is actually simpler than you think.  In the webapp's web.xml, just
replace 

  <servlet-mapping>
    <servlet-name>newapp</servlet-name>
    <url-pattern>/servlet/newapp/*</url-pattern>
  </servlet-mapping>

With 

  <servlet-mapping>
    <servlet-name>newapp</servlet-name>
    <url-pattern>/app/*</url-pattern>
  </servlet-mapping>

Then access the newapp by newapp/app instead.

Good luck,

David

-----Original Message-----
From: Martin Lidgard [mailto:[EMAIL PROTECTED] 
Sent: Saturday June 12, 2004 6:02 AM
To: [EMAIL PROTECTED]
Subject: renaming servlet prefix


Hi all,
 
I'm trying to rename the servlet prefix "/servlet/" in newapp/servlet/newapp
according to the URL-rewriting HOWTO:
 
<RequestInterceptor
    className="org.apache.tomcat.request.InvokerInterceptor"
    debug="0" prefix="/s/" />

 
When I place it as follows in the tdk/conf/server.xml file, I get no result.
Is this the correct placement?
 
    <Context ...>  
        <Manager ...>
            <RequestInterceptor .../>
        </Manager>
    </Context>

Is the HOW-TO only applicable in the Tomcat 3 container or can it be used
with Turbine 2.3 and Tomcat 4.1 as well?
 
Regards,
 
Martin
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to