[opencms-dev] why the long servlet path, how to change

Martin Leja Martin.Leja at mpluss.de
Tue Oct 29 13:21:22 CET 2002


Hi,

i wonder why opencms uses the long servlet path opencms/opencms like in the
ulr http://www.opencms.org/opencms/opencms/index.html

Can i change the servlet path to opencms only without modifying the opencms
system to much?

I edited ...\Tomcat 4.1\webapps\opencms\WEB-INF\web.xml and changed the
lines
<servlet-mapping>
  <servlet-name>OpenCmsServlet</servlet-name>
  <url-pattern>/opencms/*</url-pattern>
</servlet-mapping>

to
<servlet-mapping>
  <servlet-name>OpenCmsServlet</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

but this wasn't enough as some workplace elements seem to stick to the path
opencms/opencms and therefore wouldn't work correctly, e.g. viewing a page
by clicking on a html file in the explorer view.





More information about the opencms-dev mailing list