<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Nachricht</title>

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
h1
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:16.0pt;
        font-family:Arial;
        font-weight:bold;}
h2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:14.0pt;
        font-family:Arial;
        font-weight:bold;
        font-style:italic;}
h3
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:13.0pt;
        font-family:Arial;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.emailstyle19
        {font-family:Arial;
        color:navy;}
span.emailstyle20
        {font-family:Arial;
        color:navy;}
span.EmailStyle21
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=PT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Alex</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Sorry, my persistence,
but I don't now what else to do, and the only way that I can get some
help is here...</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I follow your instructions,
so I change the user to "Guest", but, unfortunately I continue to
get the same behaviour, this in my application (portlet). </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>When I try your JSP in OpenCms
web application everything works ok...</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>What is the meaning of
this???</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I have OpenCms and my portlet,
deployed under the ${CATALINA_HOME}/webapps/. And when, in my portlet, I do CmsObject
cms = OpenCms.initCmsObject("Guest") I get a java.lang.NullPointerException.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks other again.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Ivo</span></font></p>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
lang=EN-GB style='font-size:12.0pt;color:navy'> </span></font></p>

</div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Alexander Kandzior<br>
<b><span style='font-weight:bold'>Sent:</span></b> quarta-feira, 28 de Julho de
2004 </span></font><font size=2 face=Tahoma><span lang=EN-US style='font-size:
 10.0pt;font-family:Tahoma'>15:33</span></font><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> </span></font><font size=2
 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>opencms-dev@opencms.org</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'> </span></font></p>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Ivo,</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>you
can't initialize the CmsObject with the "Admin" user. This is a
security contraint. Only the "Guest" user can be initilized that way.
However, once you have the CmsObject with the "Guest" user, you can
use the "loginUser()" method to change the User to Admin. For that
you will need to supply the password of the Admin user.</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Try the
following code on a JSP in the OpenCms web application:</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>------------------------------</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><%@ page
import="org.opencms.main.*, org.opencms.file.*" %></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><% CmsObject cms =
OpenCms.initCmsObject("Guest"); %></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><p>Now I am user:
<b><%= cms.getRequestContext().currentUser().getName()
%></b></p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><%
cms.loginUser("Admin", "admin"); %></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><p>Now I am user:
<b><%= cms.getRequestContext().currentUser().getName()
%></b></p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>------------------------------</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><!-- Converted from text/plain format --> </span></font></p>

<p style='margin-left:35.4pt'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Best Regards,<br>
Alex.<br>
<br>
Alexander Kandzior<br>
Alkacon Software - The OpenCms Experts<br>
<a href="http://www.alkacon.com/">http://www.alkacon.com</a></span></font> </p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
35.4pt'><font size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> opencms-dev-admin@opencms.org
[mailto:opencms-dev-admin@opencms.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 28, 2004
3:21 PM<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Alex</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Once again, thanks allot for your help and time.</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>You gave me good news, because I make deploy of my application (in
this case portlet) in "webapps" directory, so the problems isn't the
application context. So I assume that the problem is in my code.</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>My problem, is that I get a java.lang.NullPointerException, when I
call OpenCms.initCmsObject("Admin").</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>The exception occurs in "</span></font><font size=2
face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>org.opencms.main.OpenCmsCore.initCmsObject(OpenCmsCore.java:935</span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>)", like</span></font><font size=2
face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>
</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>I don't have the source of version 5.3.5, I can't go to source to
see what's happening wrong...</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Do you have any idea about what's happening???</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Best Regards.</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Ivo</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Alexander Kandzior<br>
<b><span style='font-weight:bold'>Sent:</span></b> quarta-feira, 28 de Julho de
2004 </span></font><font size=2 face=Tahoma><span lang=EN-US style='font-size:
 10.0pt;font-family:Tahoma'>9:13</span></font><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>Ivo,</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>an
application context is a web application deployed in the "webapps"
folder in the ${CATALINA_HOME} directory. OpenCms usually is installed in the
"opencms" directory / application context. In case you want to share
an instance of the OpenCms object, your application must be deployed in the
same directory in "webapps" as OpenCms. Of course, you can rename the
directory name. </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>I think
there is also a way to access one application context from another in a
Servlet, like this:</span></font></p>

</div>

<div>

<p style='margin-left:70.8pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>ServletContext otherContext = <b><font color=gray><span
style='color:gray;font-weight:bold'>getServletContext</span></font></b>().<b><span
style='font-weight:bold'>getContext</span></b>(<font color="#8000ff"><span
style='color:#8000FF'>"name"</span></font>);</span></font></p>

<p style='margin-left:70.8pt'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>but I did not try using
this myself so far.</span></font></p>

<!-- Converted from text/plain format -->

<p style='margin-left:70.8pt'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Best Regards,<br>
Alex.<br>
<br>
Alexander Kandzior<br>
Alkacon Software - The OpenCms Experts<br>
<a href="http://www.alkacon.com/">http://www.alkacon.com</a></span></font> </p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
70.8pt'><font size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, July 27, 2004 7:40
PM<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Hi, again...</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>In advance,
thanks for your quick response. </span></font><font face=Wingdings><span
lang=EN-GB style='font-family:Wingdings'>J</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>The version
that I'm using is the 5.3.5, so I can use the solution you give me. But I have
a problem and I think that is the application context...</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>I've OpenCms
and portles(eXo platform) running under TomCat 5.0.25. Can you tell me if the
solution should work in this environment?? I already tried but don't work,
maybe TomCat isn't an application context, or maybe I've done something
wrong???</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Someone have
an idea???</span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Thanks </span></font></p>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Ivo Esteves</span></font></p>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Alexander Kandzior<br>
<b><span style='font-weight:bold'>Sent:</span></b> sexta-feira, 23 de Julho de
2004 </span></font><font size=2 face=Tahoma><span lang=EN-US style='font-size:
 10.0pt;font-family:Tahoma'>15:52</span></font><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] OpenCMS
and portlets.</span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>What
version do you use? </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>If you
use the current "stable" release, there is no easy way (without core
code modifications) to get a CmsObject.</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>This has
changed in the current development version (CVS HEAD). In this version you can
get access to a CmsObject using the OpenCms singleton Object (e.g. using method
OpenCms.initCmsObject(String unsername). This just requires that OpenCms shares
an application context with your application.</span></font></p>

</div>

<div>

<p style='margin-left:106.2pt'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>Best Regards,<br>
Alex.<br>
<br>
Alexander Kandzior<br>
Alkacon Software - The OpenCms Experts<br>
<a href="http://www.alkacon.com/">http://www.alkacon.com</a> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
106.2pt'><font size=2 color=blue face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:blue'> </span></font><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ivo Esteves<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, July 23, 2004 4:25
PM<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] OpenCMS and
portlets.</span></font></p>

</div>

<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Hi, </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I'm newbie in
OpenCMS. </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I'm developing a
portal using portlets and we decide to use OpenCMS only to be the Content
Management Service. </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>To access
resources I've got to use the OpenCMS API, so far so good, but I don't know how
to get the CMSObject.</span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>So far I only see
examples in JSP, that use </span></font><span lang=EN-GB>CmsJspActionElement
class to get it</span><font size=2 face="Courier New"><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>, but I'm using portlets
(Java) and I don't how to get the CMSObject to access resources,</span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=2 face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>If anyone has an
idea... </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Thanks in
advance.</span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>

<p class=MsoNormal style='margin-left:106.2pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Ivo Esteves</span></font></p>

</blockquote>

</blockquote>

</blockquote>

</div>

</body>

</html>