Hi David, you can achieve this by editing your web.xml
Here is an example:
<servlet>
<servlet-name>YOUR_APP_NAME_HERE</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>applicationRoot</param-name>
<param-value>webContext</param-value>
</init-param>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>kupona</servlet-name>
<url-pattern>/YOUR_ABBREVIATION_HERE/*</url-pattern>
</servlet-mapping>
then you can access your application under
http://localhost/YOUR_APP_NAME_HERE/YOUR_ABBREVIATION_HERE
Kind regards
Juergen Hoffmann
Am Samstag, 24. Juni 2006 00:32 schrieb David Zhao:
> Hi there,
>
> How can I simplify my turbine application URL from:
>
> http://localhost:8080/mywebapp/servlet/mywebapp to:
>
> http://localhost/mywebapp?
>
> I've read URL rewriting HowTo on the turbine page, but need to further
> simply the URL structure.
> Thanks in advance!
>
> David
> !EXCUBATOR:1,449c6c1a77961558316564!
pgpZOVbaHQcDt.pgp
Description: PGP signature
