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

Alexander Kandzior alex at opencms.org
Tue Oct 29 17:38:29 CET 2002


One more thing to mention:

If you map to "/[applicationname]/" instead of
"/[applicationname]/[servlet]/" JSPs in OpenCms 5.0 will not work.

Best Regards,
Alex.

Alexander Kandzior
OpenCms Group / Alkacon Software


> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org 
> [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of 
> Michael Emmerich
> Sent: Tuesday, October 29, 2002 4:30 PM
> To: 'opencms-dev at www.opencms.org'
> Subject: AW: [opencms-dev] why the long servlet path, how to change
> 
> 
> Martin, Bart,
> 
> this is correct if you want to change the servlet path in 
> OpenCms, you have to do two things:
> 
> 1) Modifiy the servlet-mapping in the web.xml as Bart did.
> 2) Adapt the path in the opencms.properties "url_prefix_http" 
> to the new servlet path.
> 
> Why is this second change required?
> OpenCms is able to generate static exports of the website 
> created by the system. Since it it possible to export only a 
> part of the site to the webserver, the links between the 
> exported and not-exported parts of the pages must be modified 
> during the export process. This mechanism is also used for 
> the preview function of the OpenCms workpalce (which did not 
> work after Bart's changes).
> 
> The "url_prefix" parameters defines, where the OpenCms can 
> find either the dynamically genrated pages (url_prefix_http), 
> the static exported ones
> (url_prefix_export) or those useing https (url_prefix_https).
> 
> Please note: If you modify the servlet path from 
> "/[applicationname]/[servlet]/" to "/[applicationname]/", you 
> cannot use the static export with its default location (which 
> is inside the webapplication directory), as all requests in 
> this webapplication are now forwared to the OpenCms servlet.
> 
> Regards,
> Michael Emmerich
> 
> OpenCms Professional Services
> Framfab Deutschland
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Bart Elberg [mailto:belberg at idealcorp.com]
> Gesendet: Dienstag, 29. Oktober 2002 15:24
> An: opencms-dev at www.opencms.org
> Betreff: 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