<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-654</id>
	<title>Nabble - OpenCMS - Dev</title>
	<updated>2008-08-29T08:02:08Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/OpenCMS---Dev-f654.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/OpenCMS---Dev-f654.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19221703</id>
	<title>Re: Comments module:</title>
	<published>2008-08-29T08:02:08Z</published>
	<updated>2008-08-29T08:02:08Z</updated>
	<author>
		<name>Marc Schlegel-2</name>
	</author>
	<content type="html">I did some research. The NullPointer is thrown here
&lt;br&gt;&lt;br&gt;org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_comments.elements.comment_005fmain_jsp._jspService(comment_005fmain_jsp.java:93)
&lt;br&gt;&lt;br&gt;so I checked the particular line and the code there is definately not from me
&lt;br&gt;&lt;br&gt;CmsCommentsAccess alkaconCmt = new CmsCommentsAccess(pageContext, request, response); // Errorline
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Marc Schlegel schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks Olli...I guess I have to pay 5€ to the copy&amp;paste-cashbox ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But I am getting a NullPointerException now. My page actually only
&lt;br&gt;&amp;gt; contains the template-inclusion and the code from documentation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ taglib prefix=&amp;quot;cms&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://www.opencms.org/taglib/cms&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org/taglib/cms&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ taglib prefix=&amp;quot;fmt&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jsp/jstl/fmt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jsp/jstl/fmt&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jsp/jstl/core&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jsp/jstl/core&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;cms:include property=&amp;quot;template&amp;quot; element=&amp;quot;head&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;div class=&amp;quot;element&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;!-- COMMENTS START --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;c:set var=&amp;quot;comments&amp;quot;&amp;gt;&amp;lt;cms:property name=&amp;quot;comments&amp;quot;
&lt;br&gt;&amp;gt; file=&amp;quot;search&amp;quot;/&amp;gt;&amp;lt;/c:set&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;c:if test=&amp;quot;${!empty comments}&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cms:include
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; file=&amp;quot;%(link.weak:/system/modules/com.alkacon.opencms.comments/elements/comment_main.jsp:a1074f4d-1205-11dd-8a3f-111d34530985)&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cms:param name=&amp;quot;cmturi&amp;quot; value=&amp;quot;${cms.requestContext.uri}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/cms:include&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/c:if&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;!-- COMMENTS END --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;cms:include property=&amp;quot;template&amp;quot; element=&amp;quot;foot&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt; -- Marc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Alkacon-OAMP-Comments-module-available-tp19197079p19221703.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19221619</id>
	<title>google sitemap file (was Re:  creating a file)</title>
	<published>2008-08-29T08:00:58Z</published>
	<updated>2008-08-29T08:00:58Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">Thanks. I solved it meanwhile. Had to include this line:
&lt;br&gt;&lt;br&gt;&amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLock&amp;quot; %&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, Aug 29, 2008 at 03:28:14PM +0200, Christoph P. Kukulies wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry, again, it doesn't work with your suggestion.
&lt;br&gt;&amp;gt; Here is the code:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;%@ page session=&amp;quot;false&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ page
&lt;br&gt;&amp;gt; import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;&amp;gt; java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ taglib prefix=&amp;quot;cms&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://www.opencms.org/taglib/cms&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org/taglib/cms&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jstl/core&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jstl/core&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;....
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Aug 29, 2008 at 12:49:30PM +0200, Dirk Hinderks wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Fri, Aug 29, 2008 at 09:32:18AM +0200, Christoph P. Kukulies wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks. I just thought that the package imports in the header of the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; jsp,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;lt;%@ page
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; were for just this purpose.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; You're mostly right. &amp;nbsp;But you import types/classes, not packages. &amp;nbsp;If
&lt;br&gt;&amp;gt; &amp;gt; I've understood you right, you've used something equivalent to:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; In order to use »org.opencms.lock.CmsLockType.TEMPORARY« without
&lt;br&gt;&amp;gt; &amp;gt; qualification as »CmsLockType.TEMPORARY«, add the following to your JSP
&lt;br&gt;&amp;gt; &amp;gt; (note that the right class name is »CmsLockType« instead of »CmsLock«):
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The servlet container (i.e. Tomcat) translates this to the import
&lt;br&gt;&amp;gt; &amp;gt; declaration »import org.opencms.lock.CmsLockType;« before compilation.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;gt; Dirk Hinderks, Cologne, Germany
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;/div&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19221619.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19221097</id>
	<title>Re: Comments module:</title>
	<published>2008-08-29T07:32:29Z</published>
	<updated>2008-08-29T07:32:29Z</updated>
	<author>
		<name>Marc Schlegel-2</name>
	</author>
	<content type="html">Thanks Olli...I guess I have to pay 5€ to the copy&amp;paste-cashbox ;)
&lt;br&gt;&lt;br&gt;But I am getting a NullPointerException now. My page actually only
&lt;br&gt;contains the template-inclusion and the code from documentation.
&lt;br&gt;&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;cms&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://www.opencms.org/taglib/cms&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org/taglib/cms&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;fmt&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jsp/jstl/fmt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jsp/jstl/fmt&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jsp/jstl/core&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jsp/jstl/core&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;cms:include property=&amp;quot;template&amp;quot; element=&amp;quot;head&amp;quot; /&amp;gt;
&lt;br&gt;&amp;lt;div class=&amp;quot;element&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;!-- COMMENTS START --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;c:set var=&amp;quot;comments&amp;quot;&amp;gt;&amp;lt;cms:property name=&amp;quot;comments&amp;quot;
&lt;br&gt;file=&amp;quot;search&amp;quot;/&amp;gt;&amp;lt;/c:set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;c:if test=&amp;quot;${!empty comments}&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cms:include
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;file=&amp;quot;%(link.weak:/system/modules/com.alkacon.opencms.comments/elements/comment_main.jsp:a1074f4d-1205-11dd-8a3f-111d34530985)&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cms:param name=&amp;quot;cmturi&amp;quot; value=&amp;quot;${cms.requestContext.uri}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/cms:include&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/c:if&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;!-- COMMENTS END --&amp;gt;
&lt;br&gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;lt;cms:include property=&amp;quot;template&amp;quot; element=&amp;quot;foot&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;-- Marc
&lt;br&gt;&lt;br&gt;Olli Aro schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Marc,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you copied and pasted from the PDF then you need to remove the line break
&lt;br&gt;&amp;gt; in your JSP after line:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;/system/modules/com.alkacon.opencms.comments/elements/comme
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Olli
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19221097&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19221097&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;] On Behalf Of Marc Schlegel
&lt;br&gt;&amp;gt; Sent: 29 August 2008 14:36
&lt;br&gt;&amp;gt; To: The OpenCms mailing list
&lt;br&gt;&amp;gt; Subject: [opencms-dev] Comments module:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks a lot for this module, I was really waiting for it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, I having a small problem with it.
&lt;br&gt;&amp;gt; After installation, I created a configuration file without no problem.
&lt;br&gt;&amp;gt; Then I added a jsp to my page (the guestbook) since I dont want to have
&lt;br&gt;&amp;gt; directly in my template for now. I added the provided code, declared a
&lt;br&gt;&amp;gt; &amp;quot;comments&amp;quot; property and pointed it to the configfile.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I try to display this page now, I get the message
&lt;br&gt;&amp;gt; &amp;quot;/system/modules/com.alkacon.opencms.comments/elements/comme
&lt;br&gt;&amp;gt; nt_main.jsp&amp;quot; cannot be read. So I checked if it is there and published...yes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What could be the problem about this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; best regards
&lt;br&gt;&amp;gt; -- Marc
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Alkacon-OAMP-Comments-module-available-tp19197079p19221097.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19220345</id>
	<title>Re: Comments module:</title>
	<published>2008-08-29T06:48:48Z</published>
	<updated>2008-08-29T06:48:48Z</updated>
	<author>
		<name>Olli Aro</name>
	</author>
	<content type="html">Hi Marc,
&lt;br&gt;&lt;br&gt;If you copied and pasted from the PDF then you need to remove the line break
&lt;br&gt;in your JSP after line:
&lt;br&gt;&lt;br&gt;&amp;quot;/system/modules/com.alkacon.opencms.comments/elements/comme
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Olli
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19220345&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19220345&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;] On Behalf Of Marc Schlegel
&lt;br&gt;Sent: 29 August 2008 14:36
&lt;br&gt;To: The OpenCms mailing list
&lt;br&gt;Subject: [opencms-dev] Comments module:
&lt;br&gt;&lt;br&gt;Thanks a lot for this module, I was really waiting for it.
&lt;br&gt;&lt;br&gt;Anyway, I having a small problem with it.
&lt;br&gt;After installation, I created a configuration file without no problem.
&lt;br&gt;Then I added a jsp to my page (the guestbook) since I dont want to have
&lt;br&gt;directly in my template for now. I added the provided code, declared a
&lt;br&gt;&amp;quot;comments&amp;quot; property and pointed it to the configfile.
&lt;br&gt;&lt;br&gt;When I try to display this page now, I get the message
&lt;br&gt;&amp;quot;/system/modules/com.alkacon.opencms.comments/elements/comme
&lt;br&gt;nt_main.jsp&amp;quot; cannot be read. So I checked if it is there and published...yes
&lt;br&gt;&lt;br&gt;What could be the problem about this.
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;-- Marc
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Alkacon-OAMP-Comments-module-available-tp19197079p19220345.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19220101</id>
	<title>Comments module:</title>
	<published>2008-08-29T06:36:22Z</published>
	<updated>2008-08-29T06:36:22Z</updated>
	<author>
		<name>Marc Schlegel-2</name>
	</author>
	<content type="html">Thanks a lot for this module, I was really waiting for it.
&lt;br&gt;&lt;br&gt;Anyway, I having a small problem with it.
&lt;br&gt;After installation, I created a configuration file without no problem.
&lt;br&gt;Then I added a jsp to my page (the guestbook) since I dont want to have
&lt;br&gt;directly in my template for now. I added the provided code, declared a
&lt;br&gt;&amp;quot;comments&amp;quot; property and pointed it to the configfile.
&lt;br&gt;&lt;br&gt;When I try to display this page now, I get the message
&lt;br&gt;&amp;quot;/system/modules/com.alkacon.opencms.comments/elements/comme
&lt;br&gt;nt_main.jsp&amp;quot; cannot be read. So I checked if it is there and published...yes
&lt;br&gt;&lt;br&gt;What could be the problem about this.
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;-- Marc
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Alkacon-OAMP-Comments-module-available-tp19197079p19220101.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19220004</id>
	<title>user permisions</title>
	<published>2008-08-29T06:30:47Z</published>
	<updated>2008-08-29T06:30:47Z</updated>
	<author>
		<name>Hernandez Martínez, Julián</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;I would like create a user that can edit a content but can't publish but I don't kow how
&lt;br&gt;&lt;br&gt;thanks in advance
&lt;br&gt;&lt;br&gt;Julián 
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Abans d'imprimir aquest missatge en paper pensi si realment és necessari. El medi ambient és cosa de tots...
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Advertència Legal
&lt;br&gt;La present informació s'envia únicament a la persona a la que va dirigida i pot contenir informació
&lt;br&gt;de caràcter confidencial o privilegiada. Qualsevol modificació, retransmissió, difusió o altre ús
&lt;br&gt;d'aquesta informació per persones o entitats diferents a la persona a la que va dirigida no està
&lt;br&gt;permesa. Si vostè l'ha rebut per error, si us plau contacti amb el remitent i esborri el missatge de
&lt;br&gt;qualsevol ordinador. En el cas que aquest missatge sigui contestat per la mateixa via, s'ha de saber
&lt;br&gt;que la seva resposta podria ser coneguda per tercers en entrar a la xarxa. Per això, si el
&lt;br&gt;missatge inclou contrasenyes, números de targetes de crèdit o qualsevol altra informació que vostè
&lt;br&gt;consideri confidencial, seria més segur contestar per una altra via i cancel·lar la seva transmissió.
&lt;br&gt;L'Ajuntament de Cerdanyola del Vallès no pot assumir la responsabilitat derivada del fet de que terceres persones
&lt;br&gt;puguin arribar a conèixer el contingut d'aquest missatge durant la seva transmissió.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/user-permisions-tp19220004p19220004.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19219957</id>
	<title>Re: creating a file</title>
	<published>2008-08-29T06:28:14Z</published>
	<updated>2008-08-29T06:28:14Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">Sorry, again, it doesn't work with your suggestion.
&lt;br&gt;Here is the code:
&lt;br&gt;&lt;br&gt;&amp;lt;%@ page session=&amp;quot;false&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ page
&lt;br&gt;import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;cms&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://www.opencms.org/taglib/cms&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org/taglib/cms&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jstl/core&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jstl/core&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;
&lt;br&gt;&amp;lt;urlset xmlns=&amp;quot;&lt;a href=&quot;http://www.google.com/schemas/sitemap/0.84&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/schemas/sitemap/0.84&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;%!
&lt;br&gt;protected String BASE_URL=&amp;quot;&amp;quot;;
&lt;br&gt;public static SimpleDateFormat ISO8601FORMAT = new
&lt;br&gt;SimpleDateFormat(&amp;quot;yyyy-MM-dd&amp;quot;);
&lt;br&gt;private String recurseTree(CmsObject cmso,CmsJspActionElement jsp,
&lt;br&gt;String path) &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringBuffer sb = new StringBuffer();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArrayList files = (ArrayList)
&lt;br&gt;cmso.getFilesInFolder(path);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Iterator i = files.iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (i.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsFile f = (CmsFile) i.next();	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String thispath = jsp.link(cmso.getSitePath(f));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsProperty secret =
&lt;br&gt;cmso.readPropertyObject(f,&amp;quot;sitemap_hidden&amp;quot;,true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsProperty changeFreqProperty =
&lt;br&gt;cmso.readPropertyObject(f,&amp;quot;sitemap_change_frequency&amp;quot;,true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsProperty priorityProperty =
&lt;br&gt;cmso.readPropertyObject(f,&amp;quot;sitemap_priority&amp;quot;,true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String changeFrequency =
&lt;br&gt;changeFreqProperty.getValue(&amp;quot;weekly&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String priority =
&lt;br&gt;priorityProperty.getValue(&amp;quot;1&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((secret.getValue(&amp;quot;false&amp;quot;) == &amp;quot;false&amp;quot;) 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;&amp;
&lt;br&gt;(thispath.endsWith(&amp;quot;html&amp;quot;)||thispath.endsWith(&amp;quot;jsp&amp;quot;)||thispath.endsWith(&amp;quot;pdf&amp;quot;)||thispath.endsWith(&amp;quot;htm&amp;quot;)))
&lt;br&gt;{		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;url&amp;gt;\n&amp;quot;);			
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;loc&amp;gt;&amp;quot;+BASE_URL+thispath+&amp;quot;&amp;lt;/loc&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //DateFormat df =
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //DateFormat.getDateInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String niceDate =
&lt;br&gt;ISO8601FORMAT.format(new Date(f.getDateLastModified()));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;lastmod&amp;gt;&amp;quot;+niceDate+&amp;quot;&amp;lt;/lastmod&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;changefreq&amp;gt;&amp;quot;+changeFrequency+&amp;quot;&amp;lt;/changefreq&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;priority&amp;gt;&amp;quot;+priority+&amp;quot;&amp;lt;/priority&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;&amp;lt;/url&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArrayList folders = (ArrayList)
&lt;br&gt;cmso.getSubFolders(path);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Iterator j = folders.iterator();	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (j.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsFolder f = (CmsFolder) j.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append( recurseTree(cmso,jsp,
&lt;br&gt;cmso.getSitePath(f) ) );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (CmsException cmsException) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sb.append(&amp;quot;A CMS exception occurred:
&lt;br&gt;&amp;quot;+cmsException.toString());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return sb.toString();
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;%&amp;gt;
&lt;br&gt;&amp;lt;%
&lt;br&gt;&lt;br&gt;&amp;nbsp;CmsJspActionElement cms = new
&lt;br&gt;org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
&lt;br&gt;&amp;nbsp;CmsObject cmso = cms.getCmsObject();
&lt;br&gt;&amp;nbsp;String filename=&amp;quot;sitemap.xml&amp;quot;;
&lt;br&gt;&amp;nbsp;String s_filecontent;
&lt;br&gt;&amp;nbsp;cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Offline&amp;quot;));
&lt;br&gt;if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmso.lockResource(filename,CmsLock.TEMPORARY);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.deleteResource(filename,
&lt;br&gt;CmsResource.DELETE_PRESERVE_SIBLINGS);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.unlockResource(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.publishResource(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;String url = cms.info(&amp;quot;opencms.url&amp;quot;);
&lt;br&gt;int lastSlash = url.indexOf(&amp;quot;/&amp;quot;,8);
&lt;br&gt;BASE_URL = url.substring(0,lastSlash);
&lt;br&gt;s_filecontent=recurseTree(cmso,cms, &amp;quot;/&amp;quot;);
&lt;br&gt;cmso.createResource(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filename,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OpenCms.getResourceManager().getResourceType(&amp;quot;plain&amp;quot;).getTypeId(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s_filecontent.getBytes(),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new ArrayList()
&lt;br&gt;);
&lt;br&gt;cmso.unlockResource(filename);
&lt;br&gt;cmso.publishResource(filename);
&lt;br&gt;&lt;br&gt;%&amp;gt; 
&lt;br&gt;&amp;lt;/urlset&amp;gt;
&lt;br&gt;&lt;br&gt;On Fri, Aug 29, 2008 at 12:49:30PM +0200, Dirk Hinderks wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Aug 29, 2008 at 09:32:18AM +0200, Christoph P. Kukulies wrote:
&lt;br&gt;&amp;gt; &amp;gt; Thanks. I just thought that the package imports in the header of the
&lt;br&gt;&amp;gt; &amp;gt; jsp,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;%@ page
&lt;br&gt;&amp;gt; &amp;gt; import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;&amp;gt; &amp;gt; java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; were for just this purpose.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You're mostly right. &amp;nbsp;But you import types/classes, not packages. &amp;nbsp;If
&lt;br&gt;&amp;gt; I've understood you right, you've used something equivalent to:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In order to use »org.opencms.lock.CmsLockType.TEMPORARY« without
&lt;br&gt;&amp;gt; qualification as »CmsLockType.TEMPORARY«, add the following to your JSP
&lt;br&gt;&amp;gt; (note that the right class name is »CmsLockType« instead of »CmsLock«):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The servlet container (i.e. Tomcat) translates this to the import
&lt;br&gt;&amp;gt; declaration »import org.opencms.lock.CmsLockType;« before compilation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Dirk Hinderks, Cologne, Germany
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;&amp;gt; To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19219957.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19219760</id>
	<title>Re: creating a file</title>
	<published>2008-08-29T06:19:13Z</published>
	<updated>2008-08-29T06:19:13Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 12:49:30PM +0200, Dirk Hinderks wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Aug 29, 2008 at 09:32:18AM +0200, Christoph P. Kukulies wrote:
&lt;br&gt;&amp;gt; &amp;gt; Thanks. I just thought that the package imports in the header of the
&lt;br&gt;&amp;gt; &amp;gt; jsp,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;%@ page
&lt;br&gt;&amp;gt; &amp;gt; import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;&amp;gt; &amp;gt; java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; were for just this purpose.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You're mostly right. &amp;nbsp;But you import types/classes, not packages. &amp;nbsp;If
&lt;br&gt;&amp;gt; I've understood you right, you've used something equivalent to:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock&amp;quot; %&amp;gt;
&lt;/div&gt;&lt;br&gt;Yes, that's correct.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In order to use »org.opencms.lock.CmsLockType.TEMPORARY« without
&lt;br&gt;&amp;gt; qualification as »CmsLockType.TEMPORARY«, add the following to your JSP
&lt;br&gt;&amp;gt; (note that the right class name is »CmsLockType« instead of »CmsLock«):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The servlet container (i.e. Tomcat) translates this to the import
&lt;br&gt;&amp;gt; declaration »import org.opencms.lock.CmsLockType;« before compilation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Dirk Hinderks, Cologne, Germany
&lt;/div&gt;&lt;br&gt;I see, thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19219760.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19217659</id>
	<title>Re: creating a file</title>
	<published>2008-08-29T03:49:30Z</published>
	<updated>2008-08-29T03:49:30Z</updated>
	<author>
		<name>Dirk Hinderks</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 09:32:18AM +0200, Christoph P. Kukulies wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks. I just thought that the package imports in the header of the
&lt;br&gt;&amp;gt; jsp,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;lt;%@ page
&lt;br&gt;&amp;gt; import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;&amp;gt; java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; were for just this purpose.
&lt;/div&gt;&lt;br&gt;You're mostly right. &amp;nbsp;But you import types/classes, not packages. &amp;nbsp;If
&lt;br&gt;I've understood you right, you've used something equivalent to:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock&amp;quot; %&amp;gt;
&lt;br&gt;&lt;br&gt;In order to use »org.opencms.lock.CmsLockType.TEMPORARY« without
&lt;br&gt;qualification as »CmsLockType.TEMPORARY«, add the following to your JSP
&lt;br&gt;(note that the right class name is »CmsLockType« instead of »CmsLock«):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;%@ page import=&amp;quot;org.opencms.lock.CmsLockType&amp;quot; %&amp;gt;
&lt;br&gt;&lt;br&gt;The servlet container (i.e. Tomcat) translates this to the import
&lt;br&gt;declaration »import org.opencms.lock.CmsLockType;« before compilation.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dirk Hinderks, Cologne, Germany
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19217659.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19217600</id>
	<title>OpenCms Logout with Websphere (redirect problems)</title>
	<published>2008-08-29T03:45:02Z</published>
	<updated>2008-08-29T03:45:02Z</updated>
	<author>
		<name>Alejandro.Latorre.Miguel</name>
	</author>
	<content type="html">
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Hello everybody,&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;At first sorry about my English, I am
going to improve it in a course this year. The question is the next: I
am trying to run OpenCms in a Websphere Server &amp;nbsp;and after the corresponding
configuration I have a problems with the redirection and the logout. &amp;nbsp;In
Tomcat there aren`t problems but in WebSphere the redirect after the OpenCms
demo logout doesn't work. I read in other forums some answers &amp;nbsp;refering
about the WebSphere &amp;nbsp;problems with redirection, and I change in the
CmsWorkplace class &amp;nbsp;the redirect of the method sendCmsRedirect to
a Forward like this:&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;public&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;void&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
sendCmsRedirect(String location) &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;throws&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
IOException, ServletException {&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#3f8080 face=&quot;Courier New&quot;&gt;//
TOOD: IBM Websphere v5 has problems here, use forward instead (which has
other problems)&lt;/font&gt;
&lt;br&gt;&lt;font size=2 color=#3f8080 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; // This is the old code before my changes...&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#3f8080 face=&quot;Courier New&quot;&gt;//
getJsp().getResponse().sendRedirect(OpenCms.getSystemInfo().getOpenCmsContext()
+ location);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; setForwarded(&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CmsUriSplitter
splitter = &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
CmsUriSplitter(OpenCms.&lt;i&gt;getSystemInfo&lt;/i&gt;().getOpenCmsContext() + location);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Map params = CmsRequestUtil.&lt;i&gt;createParameterMap&lt;/i&gt;(splitter.getQuery());&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sendForward(splitter.getPrefix(),
params);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;}&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;public&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;void&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
sendForward(String location, Map params) &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;throws&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
IOException, ServletException {&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setForwarded(&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#3f8080 face=&quot;Courier New&quot;&gt;//
params must be arrays of String, ensure this is the case&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; params
= CmsRequestUtil.&lt;i&gt;createParameterMap&lt;/i&gt;(params);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsRequestUtil.&lt;i&gt;forwardRequest&lt;/i&gt;(getJsp().link(location),
params, getJsp().getRequest(), getJsp().getResponse());&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;And in CmsJspLoginBean class I change
the method logout and put the next code (similar to login...):&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;public&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;void&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
login(String userName, String password, String projectName, String redirectUri)
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;throws&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
IOException {&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; login(userName,
password, projectName);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
(&lt;/font&gt;&lt;font size=2 color=#0021bf face=&quot;Courier New&quot;&gt;m_loginException&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
== &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;)
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
(redirectUri != &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;)
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; getResponse().sendRedirect(&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OpenCms.&lt;i&gt;getLinkManager&lt;/i&gt;().substituteLink(getCmsObject(),
redirectUri, &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;,
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;));&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; } &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;else&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; getResponse().sendRedirect(getFormLink());&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; }&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;public&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;void&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
logout(String redirectUri) &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;throws&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
IOException {&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HttpSession session
= getRequest().getSession(&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;false&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;);&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
(session != &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;)
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
session.invalidate();&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#3f8080 face=&quot;Courier New&quot;&gt;//
logout was successful&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
(&lt;/font&gt;&lt;font size=2 color=#0021bf face=&quot;Courier New&quot;&gt;&lt;i&gt;LOG&lt;/i&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;.isInfoEnabled())
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#0021bf face=&quot;Courier New&quot;&gt;&lt;i&gt;LOG&lt;/i&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;.info(Messages.&lt;i&gt;get&lt;/i&gt;().getBundle().key(&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; Messages.&lt;/font&gt;&lt;font size=2 color=#0021bf face=&quot;Courier New&quot;&gt;&lt;i&gt;LOG_LOGOUT_SUCCESFUL_3&lt;/i&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;,&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; getRequestContext().currentUser().getName(),&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; getRequestContext().addSiteRoot(getRequestContext().getUri()),&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; getRequestContext().getRemoteAddress()));&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
(redirectUri != &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;)
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
getResponse().sendRedirect(&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; OpenCms.&lt;i&gt;getLinkManager&lt;/i&gt;().substituteLink(getCmsObject(),
redirectUri, &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;,
&lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;));&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } &lt;/font&gt;&lt;font size=2 color=#820040 face=&quot;Courier New&quot;&gt;&lt;b&gt;else&lt;/b&gt;&lt;/font&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;
{&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; getResponse().sendRedirect(getFormLink());&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;}&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;After the changes, the problem still
apear. The parameter ?path=/demo_en/extra/login.jsp after the logout in
the url appear but the redirection doesn't work. I don't know what many
things can I do.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Thanks you in advance for any help you
can give,&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;ALEJANDRO&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;email: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19217600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Alejandro.Latorre.Miguel@...&lt;/a&gt;&lt;/font&gt;
&lt;table width=100%&gt;
&lt;tr&gt;
&lt;td width=100%&gt;&lt;/table&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&amp;nbsp;&lt;/font&gt;
&lt;br&gt;&lt;font size=1 color=#5f5f5f face=&quot;Arial&quot;&gt;&lt;b&gt;&lt;br&gt;
AVISO DE CONFIDENCIALIDAD.&lt;/b&gt;&lt;br&gt;
Este correo y la información contenida o adjunta al mismo es privada y
confidencial y va dirigida exclusivamente a su destinatario. everis informa
a quien pueda haber recibido este correo por error que contiene información
confidencial cuyo uso, copia, reproducción o distribución está expresamente
prohibida. Si no es Vd. el destinatario del mismo y recibe este correo
por error, le rogamos lo ponga en conocimiento del emisor y proceda a su
eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.&lt;br&gt;
&lt;b&gt;&lt;br&gt;
CONFIDENTIALITY WARNING.&lt;/b&gt;This message and the information contained
in or attached to it are private and confidential and intended exclusively
for the addressee. everis informs to whom it may receive it in error that
it contains privileged information and its use, copy, reproduction or distribution
is prohibited. If you are not an intended recipient of this E-mail, please
notify the sender, delete it and do not read, act upon, print, disclose,
copy, retain or redistribute any portion of this E-mail.&lt;/font&gt;
&lt;br&gt;&lt;br /&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/OpenCms-Logout-with-Websphere-%28redirect-problems%29-tp19217600p19217600.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19215125</id>
	<title>Re: creating a file</title>
	<published>2008-08-29T00:32:18Z</published>
	<updated>2008-08-29T00:32:18Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Thu, Aug 28, 2008 at 10:56:32PM +0200, Dirk Hinderks wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Chris,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Thu, Aug 28, 2008 at 04:06:07PM +0200, Christoph P. Kukulies wrote:
&lt;br&gt;&amp;gt; [trying to use CmsLock.TEMPORARY:]
&lt;br&gt;&amp;gt; &amp;gt; I solved it by typing 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; org.opencms.lock.CmsLock.TEMPORARY
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Don't know, why including org.opencms.lock or org.opencms.* didn't work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In Java you import types (or static import for static functions). &amp;nbsp;You 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Thanks. I just thought that the package imports in the header of the
&lt;br&gt;jsp,
&lt;br&gt;&lt;br&gt;&amp;lt;%@ page session=&amp;quot;false&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ page
&lt;br&gt;import=&amp;quot;java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
&lt;br&gt;java.text.SimpleDateFormat,org.opencms.main.*&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;cms&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://www.opencms.org/taglib/cms&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org/taglib/cms&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;%@ taglib prefix=&amp;quot;c&amp;quot; uri=&amp;quot;&lt;a href=&quot;http://java.sun.com/jstl/core&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/jstl/core&lt;/a&gt;&amp;quot; %&amp;gt;
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;
&lt;br&gt;&amp;lt;urlset xmlns=&amp;quot;&lt;a href=&quot;http://www.google.com/schemas/sitemap/0.84&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/schemas/sitemap/0.84&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;%!
&lt;br&gt;&lt;br&gt;were for just this purpose.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; don't import packages. &amp;nbsp;Therefore you schould use the following import 
&lt;br&gt;&amp;gt; declaration:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; import org.opencms.lock.CmsLock;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You could also use this import on demand declaration:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; import org.opencms.lock.*;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bye
&lt;br&gt;&amp;gt; Dirk
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19215125.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19214946</id>
	<title>satyendra singh has invited you to open a Google mail account</title>
	<published>2008-08-29T00:17:14Z</published>
	<updated>2008-08-29T00:17:14Z</updated>
	<author>
		<name>satyendra singh</name>
	</author>
	<content type="html">I've been using Gmail and thought you might like to try it out. Here's
&lt;br&gt;an invitation to create an account.
&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;satyendra singh has invited you to open a free Gmail account.
&lt;br&gt;&lt;br&gt;To accept this invitation and register for your account, visit
&lt;br&gt;&lt;a href=&quot;http://mail.google.com/mail/a-d4dfda9799-5730662d5c-811da1fa1d&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/a-d4dfda9799-5730662d5c-811da1fa1d&lt;/a&gt;&lt;br&gt;&lt;br&gt;Once you create your account, satyendra singh will be notified with
&lt;br&gt;your new email address so you can stay in touch with Gmail!
&lt;br&gt;&lt;br&gt;If you haven't already heard about Gmail, it's a new search-based webmail
&lt;br&gt;service that offers:
&lt;br&gt;&lt;br&gt;- Over 2,700 megabytes (two gigabytes) of free storage
&lt;br&gt;- Built-in Google search that instantly finds any message you want
&lt;br&gt;- Automatic arrangement of messages and related replies into
&lt;br&gt;&amp;nbsp; &amp;quot;conversations&amp;quot;
&lt;br&gt;- Powerful spam protection using innovative Google technology
&lt;br&gt;- No large, annoying ads--just small text ads and related pages that are
&lt;br&gt;&amp;nbsp; relevant to the content of your messages
&lt;br&gt;&lt;br&gt;To learn more about Gmail before registering, visit:
&lt;br&gt;&lt;a href=&quot;http://mail.google.com/mail/help/benefits.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/help/benefits.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;And, to see how easy it can be to switch to a new email service, check
&lt;br&gt;out our new switch guide: &lt;a href=&quot;http://mail.google.com/mail/help/switch/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.google.com/mail/help/switch/&lt;/a&gt;&lt;br&gt;&lt;br&gt;We're still working every day to improve Gmail, so we might ask for your
&lt;br&gt;comments and suggestions periodically. &amp;nbsp;We hope you'll like Gmail. &amp;nbsp;We
&lt;br&gt;do. &amp;nbsp;And, it's only going to get better.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;The Gmail Team
&lt;br&gt;&lt;br&gt;(If clicking the URLs in this message does not work, copy and paste them
&lt;br&gt;into the address bar of your browser).
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/satyendra-singh-has-invited-you-to-open-a-Google-mail-account-tp19214946p19214946.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19214920</id>
	<title>Please help me</title>
	<published>2008-08-29T00:16:42Z</published>
	<updated>2008-08-29T00:16:42Z</updated>
	<author>
		<name>satyendra singh</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;p&gt;Hello EveryOne&lt;br&gt;&amp;nbsp;&lt;br&gt;Hi ,I&amp;#39;m new for &amp;quot;content management system&amp;quot;. Now i have configured the Opencms 7 to my system, but i don&amp;#39;t have idea to start work with this. I want to develop a website through this. please give me guideline so that i can do that. also provide me some information so that i will become friendly with this cms. i have good knowledge of java and jsp. &lt;br&gt;
&amp;nbsp;&lt;br&gt;please help me.. &lt;/p&gt;
&lt;p&gt;-- &lt;br&gt;Thanks &amp;amp; Regards&lt;br&gt;Satyendra Singh&lt;/p&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Please-help-me-tp19214920p19214920.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19208989</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T13:56:32Z</published>
	<updated>2008-08-28T13:56:32Z</updated>
	<author>
		<name>Dirk Hinderks</name>
	</author>
	<content type="html">Hi Chris,
&lt;br&gt;&lt;br&gt;On Thu, Aug 28, 2008 at 04:06:07PM +0200, Christoph P. Kukulies wrote:
&lt;br&gt;[trying to use CmsLock.TEMPORARY:]
&lt;br&gt;&amp;gt; I solved it by typing 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; org.opencms.lock.CmsLock.TEMPORARY
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Don't know, why including org.opencms.lock or org.opencms.* didn't work.
&lt;br&gt;&lt;br&gt;In Java you import types (or static import for static functions). &amp;nbsp;You 
&lt;br&gt;don't import packages. &amp;nbsp;Therefore you schould use the following import 
&lt;br&gt;declaration:
&lt;br&gt;&lt;br&gt;&amp;nbsp; import org.opencms.lock.CmsLock;
&lt;br&gt;&lt;br&gt;You could also use this import on demand declaration:
&lt;br&gt;&lt;br&gt;&amp;nbsp; import org.opencms.lock.*;
&lt;br&gt;&lt;br&gt;Bye
&lt;br&gt;Dirk
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19208989.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19202516</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T08:01:42Z</published>
	<updated>2008-08-28T08:01:42Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">&lt;br&gt;See between the lines...
&lt;br&gt;&lt;br&gt;On Wed, Aug 27, 2008 at 06:24:16AM -0700, Roman Uhlig wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We use OpenCms.createResource() for that (e.g. automatically creating Google
&lt;br&gt;&amp;gt; Sitemaps every night).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Looks like that:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CmsObject cmso = ....
&lt;br&gt;&amp;gt; String filename = ...
&lt;br&gt;&amp;gt; String s_filecontent = ...
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Offline&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 	cmso.lockResourceTemporary(filename);
&lt;br&gt;&amp;gt; 	cmso.deleteResource(filename, CmsResource.DELETE_PRESERVE_SIBLINGS);
&lt;br&gt;&amp;gt; 	if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 		cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; 		cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; cmso.createResource(
&lt;br&gt;&amp;gt; 	filename, 
&lt;br&gt;&amp;gt; 	OpenCms.getResourceManager().getResourceType(&amp;quot;plain&amp;quot;).getTypeId(), 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;What else resourceTypeNames are there besides &amp;quot;plain&amp;quot;? Would a google
&lt;br&gt;sitemap file have to be structured contents? Or a plain sitemap.xml file?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 	s_filecontent.getBytes(), 
&lt;br&gt;&amp;gt; 	new ArrayList()
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt; cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 				
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Online&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This works also in the latest OpenCms 6 versions (publishResource is
&lt;br&gt;&amp;gt; deprecated as of version 7).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; Roman
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19202516.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19201728</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T07:22:25Z</published>
	<updated>2008-08-28T07:22:25Z</updated>
	<author>
		<name>Uwe König-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Heyho, 
&lt;br&gt;&lt;br&gt;&amp;gt; Don't know, why including org.opencms.lock or org.opencms.* didn't work.
&lt;br&gt;&lt;br&gt;Maybe type interference? There also exists org.opencms.workplace.commons.CmsLock.java
&lt;br&gt;Best regards, 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Uwe König
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Uwe König &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19201728&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;u.koenig@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;ifu Hamburg - material flows and software
&lt;br&gt;&lt;br&gt;ifu Institut fuer Umweltinformatik Hamburg GmbH
&lt;br&gt;Grosse Bergstrasse 219, 22767 Hamburg, Germany
&lt;br&gt;Managing Director: Jan Hedemann, Commercial Register: Hamburg, HRB 52629
&lt;br&gt;www.ifu.com - www.umberto.de - www.sabento.com - www.e-sankey.com
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; e!Sankey - software for easy drawing of Sankey diagrams.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Visit &lt;a href=&quot;http://www.e-sankey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.e-sankey.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19201728.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19201337</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T07:06:07Z</published>
	<updated>2008-08-28T07:06:07Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Thu, Aug 28, 2008 at 05:14:29AM -0700, Roman Uhlig wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please consult the OpenCms API JavaDoc, you probably didn't import the
&lt;br&gt;&amp;gt; appropriate package.
&lt;br&gt;&lt;br&gt;I solved it by typing 
&lt;br&gt;&lt;br&gt;org.opencms.lock.CmsLock.TEMPORARY
&lt;br&gt;&lt;br&gt;Don't know, why including org.opencms.lock or org.opencms.* didn't work.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19201337.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19199318</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T05:14:29Z</published>
	<updated>2008-08-28T05:14:29Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">Please consult the OpenCms API JavaDoc, you probably didn't import the appropriate package.
&lt;br&gt;&lt;br&gt;Roman</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19199318.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19199108</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T05:00:13Z</published>
	<updated>2008-08-28T05:00:13Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Thu, Aug 28, 2008 at 03:29:27AM -0700, Roman Uhlig wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's CmsObject.lockResource(), and &amp;quot;resource&amp;quot; is a placeholder for the full
&lt;br&gt;&amp;gt; name of the resource as usual.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Christoph P. Kukulies wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Thu, Aug 28, 2008 at 02:35:12AM -0700, Roman Uhlig wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Oh yes, that has changed in OpenCms 7. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Just use lockResource(resource, CmsLock.TEMPORARY)
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Sorry for coming up again: I'm getting 
&lt;br&gt;&lt;br&gt;CmsLock.TEMPORARY cannot be resolved to a type.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; In which class do I find this method? Is resource an Object or the
&lt;br&gt;&amp;gt; &amp;gt; filename?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19199108.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197943</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T03:29:27Z</published>
	<updated>2008-08-28T03:29:27Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">It's CmsObject.lockResource(), and &amp;quot;resource&amp;quot; is a placeholder for the full name of the resource as usual.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Christoph P. Kukulies wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Thu, Aug 28, 2008 at 02:35:12AM -0700, Roman Uhlig wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Oh yes, that has changed in OpenCms 7. 
&lt;br&gt;&amp;gt; Just use lockResource(resource, CmsLock.TEMPORARY)
&lt;br&gt;&lt;br&gt;In which class do I find this method? Is resource an Object or the
&lt;br&gt;filename?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19197943.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197916</id>
	<title>Re: Performance</title>
	<published>2008-08-28T03:26:35Z</published>
	<updated>2008-08-28T03:26:35Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">We think it's the overhauled OpenCms 7 engine as well as the PostgreSQL update (8.3 is known for having great performance improvements). It has probably not that much to do with JDK/Tomcat upgrades.
&lt;br&gt;&lt;br&gt;Also, during the update we exported all OpenCms projects and re-imported them in the new OpenCms 7. This process dropped the whole resource history, which caused the database to drop from about 6 GB to 3 GB. This quite uncontrolled history mechanism still frightens me a bit. In a heavily changing environment it may inflate the size of your database more than you might like.
&lt;br&gt;&lt;br&gt;Roman</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19197916.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197807</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T03:16:27Z</published>
	<updated>2008-08-28T03:16:27Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Thu, Aug 28, 2008 at 02:35:12AM -0700, Roman Uhlig wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Oh yes, that has changed in OpenCms 7. 
&lt;br&gt;&amp;gt; Just use lockResource(resource, CmsLock.TEMPORARY)
&lt;br&gt;&lt;br&gt;In which class do I find this method? Is resource an Object or the
&lt;br&gt;filename?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19197807.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197761</id>
	<title>Re: Performance</title>
	<published>2008-08-28T03:14:38Z</published>
	<updated>2008-08-28T03:14:38Z</updated>
	<author>
		<name>Jordi Martí</name>
	</author>
	<content type="html">I'm also impressed...
&lt;br&gt;&lt;br&gt;May I ask what's your impression? 
&lt;br&gt;&lt;br&gt;What's the factor that you think could have affected the most to that
&lt;br&gt;performance gain? Opencms version change or jdk-tomcat upgrade?
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;JORDI MARTÍ 
&lt;br&gt;Email: jmarti _at_ theinit ^dot* com
&lt;br&gt;Skype ID: jmarti _dotx_ theinit
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;PRIVADO Y CONFIDENCIAL
&lt;br&gt;Este mensaje va dirigido a la persona(s) indicada(s). Puede contener
&lt;br&gt;información confidencial de carácter legal o personal de THE INIT SERVICES,
&lt;br&gt;La transmisión errónea del presente mensaje en ningún momento supone
&lt;br&gt;renuncia a su confidencialidad. Si el lector del mensaje no es el
&lt;br&gt;destinatario indicado, o el empleado encargado de su entrega a dicha
&lt;br&gt;persona, por favor, notifíquelo inmediatamente por teléfono y remita el
&lt;br&gt;mensaje original a la dirección de correo electrónico indicada. Cualquier
&lt;br&gt;copia o distribución de esta comunicación queda estrictamente prohibida.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Mensaje original-----
&lt;br&gt;De: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19197761&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19197761&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;]
&lt;br&gt;En nombre de Roman Uhlig
&lt;br&gt;Enviado el: jueves, 28 de agosto de 2008 11:17
&lt;br&gt;Para: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19197761&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev@...&lt;/a&gt;
&lt;br&gt;Asunto: Re: [opencms-dev] Performance
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Jerome,
&lt;br&gt;&lt;br&gt;no problem: the single server I linked the monitoring graph for served about
&lt;br&gt;900.000 page impressions by 3,7 million hits in july 2008.
&lt;br&gt;&lt;br&gt;Roman
&lt;br&gt;-- 
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/Performance-tp19186092p19196995.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Performance-tp19186092p19196995.html&lt;/a&gt;&lt;br&gt;Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19197761.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197240</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T02:35:12Z</published>
	<updated>2008-08-28T02:35:12Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">Oh yes, that has changed in OpenCms 7. 
&lt;br&gt;Just use lockResource(resource, CmsLock.TEMPORARY)
&lt;br&gt;&lt;br&gt;Roman</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19197240.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197197</id>
	<title>Re: creating a file</title>
	<published>2008-08-28T02:30:47Z</published>
	<updated>2008-08-28T02:30:47Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Wed, Aug 27, 2008 at 06:24:16AM -0700, Roman Uhlig wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We use OpenCms.createResource() for that (e.g. automatically creating Google
&lt;br&gt;&amp;gt; Sitemaps every night).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Looks like that:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CmsObject cmso = ....
&lt;br&gt;&amp;gt; String filename = ...
&lt;br&gt;&amp;gt; String s_filecontent = ...
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Offline&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 	cmso.lockResourceTemporary(filename);
&lt;/div&gt;&lt;br&gt;&lt;br&gt;lockResourceTemporary()
&lt;br&gt;doesn't seem to work in 6.2.3 
&lt;br&gt;&lt;br&gt;Can I use lockResource()?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 	cmso.deleteResource(filename, CmsResource.DELETE_PRESERVE_SIBLINGS);
&lt;br&gt;&amp;gt; 	if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 		cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; 		cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; cmso.createResource(
&lt;br&gt;&amp;gt; 	filename, 
&lt;br&gt;&amp;gt; 	OpenCms.getResourceManager().getResourceType(&amp;quot;plain&amp;quot;).getTypeId(), 
&lt;br&gt;&amp;gt; 	s_filecontent.getBytes(), 
&lt;br&gt;&amp;gt; 	new ArrayList()
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt; cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 				
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Online&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This works also in the latest OpenCms 6 versions (publishResource is
&lt;br&gt;&amp;gt; deprecated as of version 7).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; Roman
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19197197.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19197079</id>
	<title>Alkacon OAMP Comments module available</title>
	<published>2008-08-28T02:22:15Z</published>
	<updated>2008-08-28T02:22:15Z</updated>
	<author>
		<name>Alexander Kandzior</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;the Alkacon OAMP Comments Module is now available.
&lt;br&gt;&lt;br&gt;This is the next open source module in the Alkacon OpenCms Add-On Module
&lt;br&gt;Package (OAMP) series.
&lt;br&gt;&lt;br&gt;The module is available for download here:
&lt;br&gt;&lt;a href=&quot;http://www.alkacon.com/en/products/oamp/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.alkacon.com/en/products/oamp/index.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;The OAMP Comments Module allows to add highly configurable blog like comment
&lt;br&gt;&lt;br&gt;options to all template based pages in OpenCms. It can also be used to
&lt;br&gt;create 
&lt;br&gt;Guestbooks or simple discussion boards.
&lt;br&gt;&lt;br&gt;This module is also used on the opencms.org website.
&lt;br&gt;&lt;br&gt;The Alkacon OAMP Comments Module features:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; * Highly configurable comment form fields.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Comment moderation option.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Allows to create Guestbooks or simple discussion boards.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Comment administration in 'direct edit' style.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Configurable security levels allow to create 'open' 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; comments or may require a login for 'closed group' comments.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Optional use of Captcha field for new entries.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Integrated frontend login form.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * Html code generation based on AJAX technologies.
&lt;br&gt;&lt;br&gt;The module is available with full source code and documentation.
&lt;br&gt;&lt;br&gt;All Alkacon OAMP modules are released as full Open Source under the GNU GPL
&lt;br&gt;version 3. The source code of the modules is freely available in the public
&lt;br&gt;CVS of cvs.opencms.org.
&lt;br&gt;&lt;br&gt;Please note: To use the Alkacon OAMP comments module version 1.0.0, 
&lt;br&gt;you need at least OpenCms version 7.0.5 and the Alkacon OAMP Webform module 
&lt;br&gt;version 1.2.0. The module is not compatible with older OpenCms versions.
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;Alex.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-------------------
&lt;br&gt;Alexander Kandzior
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Alkacon Software GmbH &amp;nbsp;- The OpenCms Experts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://www.alkacon.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.alkacon.com&lt;/a&gt;&amp;nbsp;- &lt;a href=&quot;http://www.opencms.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opencms.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Alkacon-OAMP-Comments-module-available-tp19197079p19197079.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19196995</id>
	<title>Re: Performance</title>
	<published>2008-08-28T02:17:11Z</published>
	<updated>2008-08-28T02:17:11Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">Hi Jerome,
&lt;br&gt;&lt;br&gt;no problem: the single server I linked the monitoring graph for served about 900.000 page impressions by 3,7 million hits in july 2008.
&lt;br&gt;&lt;br&gt;Roman</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19196995.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19196905</id>
	<title>Re: Performance</title>
	<published>2008-08-28T02:09:19Z</published>
	<updated>2008-08-28T02:09:19Z</updated>
	<author>
		<name>Jerome Chauvin</name>
	</author>
	<content type="html">Hello Roman,
&lt;br&gt;&lt;br&gt;I'm very interested in this information.
&lt;br&gt;&lt;br&gt;Could you say me what is the trafic on your site (pages viewed per day, or
&lt;br&gt;any other metric)
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;-Jerome-
&lt;br&gt;&lt;br&gt;-----Message d'origine-----
&lt;br&gt;De : &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19196905&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19196905&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev-bounces@...&lt;/a&gt;]
&lt;br&gt;De la part de Roman Uhlig
&lt;br&gt;Envoyé : jeudi 28 août 2008 10:58
&lt;br&gt;À : &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19196905&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms-dev@...&lt;/a&gt;
&lt;br&gt;Objet : Re: [opencms-dev] Performance
&lt;br&gt;&lt;br&gt;&lt;br&gt;We just did a migration for 4 of our servers similar to yours. We upgraded
&lt;br&gt;like that:
&lt;br&gt;&lt;br&gt;OpenCms 6.2.3 -&amp;gt; 7.0.5
&lt;br&gt;Tomcat 5.5 -&amp;gt; Tomcat 6 (latest)
&lt;br&gt;SUN JDK 1.5 -&amp;gt; SUN JDK 1.6 (latest)
&lt;br&gt;PostgreSQL 8.1 -&amp;gt; PostgreSQL 8.3.3
&lt;br&gt;Apache 2.2.x as Proxy -&amp;gt; Apache 2.2.x with mod_jk
&lt;br&gt;&lt;br&gt;If you stick to OpenCms 7.0.5 (do not use any previous 7.x version, they have
&lt;br&gt;major issues in their db code, at least for PostgreSQL), you should not
&lt;br&gt;encounter any problems. At least we didn't.
&lt;br&gt;&lt;br&gt;The performance boost after the upgrade was incredible, so don't hesitate to
&lt;br&gt;do it as soon as possible. As motivation, below is a link to a graph of our
&lt;br&gt;server monitoring service (munin), showing the average page rendering time
&lt;br&gt;before and after the update. As you can see, we updated in july. This is
&lt;br&gt;remarkable, because this very server is a Dell PowerEdge Xeon quad core with
&lt;br&gt;16 GB of RAM, which is lightning fast already.
&lt;br&gt;&lt;br&gt;Monitoring graph: &lt;a href=&quot;http://files.maxity.com/munin_tomcat.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://files.maxity.com/munin_tomcat.jpg&lt;/a&gt;&lt;br&gt;&lt;br&gt;Roman
&lt;br&gt;--
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/Performance-tp19186092p19196751.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Performance-tp19186092p19196751.html&lt;/a&gt;&lt;br&gt;Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19196905.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19196751</id>
	<title>Re: Performance</title>
	<published>2008-08-28T01:57:34Z</published>
	<updated>2008-08-28T01:57:34Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">We just did a migration for 4 of our servers similar to yours. We upgraded like that:
&lt;br&gt;&lt;br&gt;OpenCms 6.2.3 -&amp;gt; 7.0.5
&lt;br&gt;Tomcat 5.5 -&amp;gt; Tomcat 6 (latest)
&lt;br&gt;SUN JDK 1.5 -&amp;gt; SUN JDK 1.6 (latest)
&lt;br&gt;PostgreSQL 8.1 -&amp;gt; PostgreSQL 8.3.3
&lt;br&gt;Apache 2.2.x as Proxy -&amp;gt; Apache 2.2.x with mod_jk
&lt;br&gt;&lt;br&gt;If you stick to OpenCms 7.0.5 (do not use any previous 7.x version, they have major issues in their db code, at least for PostgreSQL), you should not encounter any problems. At least we didn't.
&lt;br&gt;&lt;br&gt;The performance boost after the upgrade was incredible, so don't hesitate to do it as soon as possible. As motivation, below is a link to a graph of our server monitoring service (munin), showing the average page rendering time before and after the update. As you can see, we updated in july. This is remarkable, because this very server is a Dell PowerEdge Xeon quad core with 16 GB of RAM, which is lightning fast already.
&lt;br&gt;&lt;br&gt;Monitoring graph: &lt;a href=&quot;http://files.maxity.com/munin_tomcat.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://files.maxity.com/munin_tomcat.jpg&lt;/a&gt;&lt;br&gt;&lt;br&gt;Roman</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19196751.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19187548</id>
	<title>Re: Performance</title>
	<published>2008-08-27T12:02:11Z</published>
	<updated>2008-08-27T12:02:11Z</updated>
	<author>
		<name>Arcady V. Ivanov</name>
	</author>
	<content type="html">&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19187548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;opencms@...&lt;/a&gt;:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm planning to migrate from version 6 to 7.
&lt;br&gt;&amp;gt; As the systems performance is ok but could be
&lt;br&gt;&amp;gt; better, I'm also looking into improving the
&lt;br&gt;&amp;gt; configuration since the max. hits per hour
&lt;br&gt;&amp;gt; might soon double from now about 19000.
&lt;br&gt;&amp;gt; Currently it's running on Apache 1.3 with mod_jk, Mysql 4.0.24 with
&lt;br&gt;&amp;gt; jdk1.5_0_06. I was thinking about switching to the latest
&lt;br&gt;&amp;gt; Apache2, Tomcat 6 and Mysql 5 with latest jdk as well.
&lt;br&gt;&amp;gt; Does anyone have experience with that configuration?
&lt;br&gt;&amp;gt; Is it better to use Tomcat 5.5 as recommended in the installguide?
&lt;br&gt;&amp;gt; Should i also stick to Apache 1.3?
&lt;br&gt;&amp;gt; How about the jdk? Any known problems with the latest version?
&lt;br&gt;&amp;gt; I want to improve performance but off course stability is prio one.
&lt;br&gt;&amp;gt; The system is running on a P4 3.4 Ghz, 160 GB harddisk and approx.
&lt;br&gt;&amp;gt; 900 MB ram. Probably i would get the biggest boost from moving
&lt;br&gt;&amp;gt; to a new server. Anyone got with a similar hardware?
&lt;br&gt;&amp;gt; Ram usage is always up to 890 of 900 which is surely not optimal !?
&lt;br&gt;&amp;gt; I gave about 750 mb to the jvm. Is that maybe even too much?
&lt;br&gt;&amp;gt; Lots of questions, any comments or links would be highly appreciated!
&lt;br&gt;&amp;gt; Many greetings
&lt;br&gt;&amp;gt; Marc
&lt;/div&gt;Hello, Marc.
&lt;/div&gt;I have not met any problem with:
&lt;br&gt;&lt;br&gt;OpenCMS 7.0.4, 7.0.5
&lt;br&gt;Sun JDK 1.6.0_05
&lt;br&gt;Tomcat 6.0.16
&lt;br&gt;Apache2-2.2.4,
&lt;br&gt;mod_jk_1.2.26
&lt;br&gt;Postgresql8.2.4
&lt;br&gt;&lt;br&gt;on different computers with 1Gb RAM.
&lt;br&gt;&lt;br&gt;But I have no such flow of queries, as you have and did not
&lt;br&gt;compared performance of different versions of software.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;SY. Arcady Ivanov.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[arc.vcf]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;begin:vcard
&lt;br&gt;fn:Arcady Ivanov
&lt;br&gt;n:Ivanov;Arcady
&lt;br&gt;org:Help Ltd.;IT department
&lt;br&gt;adr:;;Leningradskaya,100;Petropavlovsk-Kamchatsky;Kamchatka region;683000;Russia
&lt;br&gt;email;internet:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19187548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arc@...&lt;/a&gt;
&lt;br&gt;title:vice-president
&lt;br&gt;tel;work:8-4152-428-284
&lt;br&gt;tel;home:8-41531-64409
&lt;br&gt;tel;cell:+7-962-290-8343
&lt;br&gt;x-mozilla-html:TRUE
&lt;br&gt;url:http://www.help0.ru
&lt;br&gt;version:2.1
&lt;br&gt;end:vcard
&lt;br&gt;&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19187548.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19187137</id>
	<title>Re: creating a file</title>
	<published>2008-08-27T11:38:26Z</published>
	<updated>2008-08-27T11:38:26Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">On Wed, Aug 27, 2008 at 06:24:16AM -0700, Roman Uhlig wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We use OpenCms.createResource() for that (e.g. automatically creating Google
&lt;br&gt;&amp;gt; Sitemaps every night).
&lt;br&gt;&lt;br&gt;Funnily that's exactly what I'm trying to do, a Google sitemap :-)
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Looks like that:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CmsObject cmso = ....
&lt;br&gt;&amp;gt; String filename = ...
&lt;br&gt;&amp;gt; String s_filecontent = ...
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Offline&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 	cmso.lockResourceTemporary(filename);
&lt;br&gt;&amp;gt; 	cmso.deleteResource(filename, CmsResource.DELETE_PRESERVE_SIBLINGS);
&lt;br&gt;&amp;gt; 	if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;gt; 		cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; 		cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; cmso.createResource(
&lt;br&gt;&amp;gt; 	filename, 
&lt;br&gt;&amp;gt; 	OpenCms.getResourceManager().getResourceType(&amp;quot;plain&amp;quot;).getTypeId(), 
&lt;br&gt;&amp;gt; 	s_filecontent.getBytes(), 
&lt;br&gt;&amp;gt; 	new ArrayList()
&lt;br&gt;&amp;gt; );
&lt;br&gt;&amp;gt; cmso.unlockResource(filename);
&lt;br&gt;&amp;gt; cmso.publishResource(filename);
&lt;br&gt;&amp;gt; 				
&lt;br&gt;&amp;gt; cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Online&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This works also in the latest OpenCms 6 versions (publishResource is
&lt;br&gt;&amp;gt; deprecated as of version 7).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; Roman
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://www.nabble.com/creating-a-file-tp19178157p19180880.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/creating-a-file-tp19178157p19180880.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;&amp;gt; To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19187137.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19186092</id>
	<title>Performance</title>
	<published>2008-08-27T10:43:51Z</published>
	<updated>2008-08-27T10:43:51Z</updated>
	<author>
		<name>Marc Johnen</name>
	</author>
	<content type="html">Hello everyone,
&lt;br&gt;&lt;br&gt;I'm planning to migrate from version 6 to 7.
&lt;br&gt;As the systems performance is ok but could be
&lt;br&gt;better, I'm also looking into improving the
&lt;br&gt;configuration since the max. hits per hour
&lt;br&gt;might soon double from now about 19000.
&lt;br&gt;Currently it's running on Apache 1.3 with mod_jk, Mysql 4.0.24 with
&lt;br&gt;jdk1.5_0_06. I was thinking about switching to the latest
&lt;br&gt;Apache2, Tomcat 6 and Mysql 5 with latest jdk as well.
&lt;br&gt;Does anyone have experience with that configuration?
&lt;br&gt;Is it better to use Tomcat 5.5 as recommended in the installguide?
&lt;br&gt;Should i also stick to Apache 1.3?
&lt;br&gt;How about the jdk? Any known problems with the latest version?
&lt;br&gt;I want to improve performance but off course stability is prio one.
&lt;br&gt;The system is running on a P4 3.4 Ghz, 160 GB harddisk and approx.
&lt;br&gt;900 MB ram. Probably i would get the biggest boost from moving
&lt;br&gt;to a new server. Anyone got with a similar hardware?
&lt;br&gt;Ram usage is always up to 890 of 900 which is surely not optimal !?
&lt;br&gt;I gave about 750 mb to the jvm. Is that maybe even too much?
&lt;br&gt;Lots of questions, any comments or links would be highly appreciated!
&lt;br&gt;Many greetings
&lt;br&gt;Marc
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Performance-tp19186092p19186092.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19180880</id>
	<title>Re: creating a file</title>
	<published>2008-08-27T06:24:16Z</published>
	<updated>2008-08-27T06:24:16Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">We use OpenCms.createResource() for that (e.g. automatically creating Google Sitemaps every night).
&lt;br&gt;&lt;br&gt;Looks like that:
&lt;br&gt;&lt;br&gt;CmsObject cmso = ....
&lt;br&gt;String filename = ...
&lt;br&gt;String s_filecontent = ...
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Offline&amp;quot;));
&lt;br&gt;&lt;br&gt;if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.lockResourceTemporary(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.deleteResource(filename, CmsResource.DELETE_PRESERVE_SIBLINGS);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (cmso.existsResource(filename)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.unlockResource(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmso.publishResource(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;cmso.createResource(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filename, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OpenCms.getResourceManager().getResourceType(&amp;quot;plain&amp;quot;).getTypeId(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s_filecontent.getBytes(), 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new ArrayList()
&lt;br&gt;);
&lt;br&gt;cmso.unlockResource(filename);
&lt;br&gt;cmso.publishResource(filename);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;cmso.getRequestContext().setCurrentProject(cmso.readProject(&amp;quot;Online&amp;quot;));
&lt;br&gt;&lt;br&gt;&lt;br&gt;Basically it's deleting and creating the file over and over again. This works also in the latest OpenCms 6 versions (publishResource is deprecated as of version 7).
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Roman
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19180880.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19180703</id>
	<title>Re: Recursive property search</title>
	<published>2008-08-27T06:15:29Z</published>
	<updated>2008-08-27T06:15:29Z</updated>
	<author>
		<name>Roman Uhlig</name>
	</author>
	<content type="html">Hi Robert,
&lt;br&gt;&lt;br&gt;I'd recommend a manual processing and changing of these resources. Using the OpenCms API that's actually quite easy. 
&lt;br&gt;The most common (though slowest) approach is to recursively iterate through the OpenCms VFS and check resources for properties. You could try something like that:
&lt;br&gt;&lt;br&gt;public function recurseVFS(CmsObject cmso, String path) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Iterator&amp;lt;CmsFile&amp;gt; iter_files = ((ArrayList)cmso.getFilesInFolder(path)).iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (iter_files.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsFile file = iter_files.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsProperty p = cmso.readPropertyObject(file, &amp;quot;MyProperty&amp;quot;, true);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // do something with the file and/or property here
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Iterator iter_folders = ((ArrayList)cmso.getSubFolders(path)).iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (iter_folders.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CmsFolder folder = iter_folders.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; recurseVFS(cmso, cmso.getSitePath(folder));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;You would initially call recurseVFS() with the VFS path you would recursively like to start with.
&lt;br&gt;&lt;br&gt;This functionality is backward compatible at least to OpenCms version 6.2.3.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Roman
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Robert Spielmann-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi all,
&lt;br&gt;&lt;br&gt;I have a situation in which I need to migrate property values automatically in order to preserve existing content and in order to reduce or completely avoid manual work on several thousand resources.
&lt;br&gt;&lt;br&gt;Let's say the property is called &amp;quot;MyProperty&amp;quot; and it currently contains values like &amp;quot;a,b,c&amp;quot;, &amp;quot;b,c,a&amp;quot; etc. I want to convert them to &amp;quot;x,y,z&amp;quot;, &amp;quot;y,z,x&amp;quot; etc.
&lt;br&gt;&lt;br&gt;As there can potentially be a deliberate number of freely chosen combinations, I can obviously not use the workplace tools to replace the property values.
&lt;br&gt;&lt;br&gt;Hence, I would like to recursively iterate over all VFS resources in a given site, read the property &amp;quot;MyProperty&amp;quot;, save the current property value and the resource name if a resource has that property set, and then go to step 2 and replace the properties on the collected resources.
&lt;br&gt;&lt;br&gt;If this is programatically possible, can anyone give me a hint on where to start?
&lt;br&gt;&lt;br&gt;I work with OpenCms 6.5.6 which contains custom patches directly from Alkacon.
&lt;br&gt;&lt;br&gt;Have a nice day,
&lt;br&gt;Robert
&lt;br&gt;&lt;br&gt;Mit freundlichen Grüßen / Best regards
&lt;br&gt;&lt;br&gt;Robert Spielmann
&lt;br&gt;IT Consultant
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;codecentric GmbH
&lt;br&gt;Grünewalder Str. 29-31
&lt;br&gt;42657 Solingen
&lt;br&gt;&lt;br&gt;Telefon +49 (212) 2494-322
&lt;br&gt;Fax +49 (212) 2494-334
&lt;br&gt;Mobil +49 (151) 14705709
&lt;br&gt;&lt;br&gt;E-Mail spielmann@codecentric.de
&lt;br&gt;&lt;br&gt;Internet www.codecentric.de &amp;lt;&lt;a href=&quot;http://www.codecentric.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codecentric.de/&lt;/a&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns
&lt;br&gt;Sitz der Gesellschaft: Solingen
&lt;br&gt;&lt;br&gt;Registergericht: Amtsgericht Wuppertal, HRB 19214
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Recursive-property-search-tp19161767p19180703.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19178157</id>
	<title>creating a file</title>
	<published>2008-08-27T03:15:20Z</published>
	<updated>2008-08-27T03:15:20Z</updated>
	<author>
		<name>Christoph P. Kukulies</name>
	</author>
	<content type="html">The answer may be simple but I would like to create and write to a file
&lt;br&gt;in the VFS from within a jsp. Next time I invoke the jsp the file
&lt;br&gt;should be newly written to if it already exists (old contents should be
&lt;br&gt;overwritten).
&lt;br&gt;&lt;br&gt;Do I use CmsResource, CmsObject or CmsFile ?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;This mail is sent to you from the opencms-dev mailing list
&lt;br&gt;To change your list options, or to unsubscribe from the list, please visit
&lt;br&gt;&lt;a href=&quot;http://lists.opencms.org/mailman/listinfo/opencms-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.opencms.org/mailman/listinfo/opencms-dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/creating-a-file-tp19178157p19178157.html" />
</entry>

</feed>
