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

James Higginbotham jhigginbotham at betweenmarkets.com
Tue Oct 29 16:12:30 CET 2002


If that is the case, the code needs to be changed to use the appropriate
servlet APIs to get the current servlet context, rather than hardcoding
the prefix. The servlet API was written to prevent this kind of
hardcoding within either props files or JSPs/servlets. 

James

-----Original Message-----
From: Bart Elberg [mailto:belberg at idealcorp.com] 
Sent: Tuesday, October 29, 2002 8:24 AM
To: opencms-dev at www.opencms.org
Subject: Re: [opencms-dev] why the long servlet path, how to change


I'm not sure if this will take care of all of the problems, but you can 
try setting "url_prefix_http" in opencms.properties to match the new 
servlet path.  I would be interested to know if you get it working.

Bart Elberg

__________________________________________________
I.D.E.A.L. Technology Corporation - Orlando Office
http://www.idealcorp.com - 407.999.9870 x15

-------------------------

Martin Leja wrote:

>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