<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=451424709-03102003><FONT face=Arial color=#0000ff size=2>I had
problems with WebUsers using the browser popup box for passwords. I created my
own login.jsp which is using the OpenCMS API to login. There are two methods one
for webuser and one for OpenCMS user. I have no problems
now.</FONT></SPAN></DIV>
<DIV><SPAN class=451424709-03102003><FONT face=Arial color=#0000ff
size=2>--Marcus</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <B>On
Behalf Of </B>Paolo Brunasti - Agora<BR><B>Sent:</B> Friday, October 03, 2003
11:14 AM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B>
[opencms-dev] Web Users control accessing pages<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I've created some WebUser with this code
:</FONT></DIV>
<DIV><FONT face=Arial size=2>-----------------------------</FONT></DIV>
<DIV> CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response); <BR> CmsObject cmso = cms.getCmsObject(); </DIV>
<DIV><FONT face=Arial size=2> CmsUser createdUser =
cmso.addWebUser(.......</FONT></DIV>
<DIV><FONT face=Arial size=2>-----------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>I associated them with a Group
"WebUsers".</FONT></DIV>
<DIV><FONT face=Arial size=2>Then I create an other web user and
associated it with the "WebHidden" group.</FONT></DIV>
<DIV><FONT face=Arial size=2>I create some pages and directories "pubblic" and
others visible only to "WebHidden" group.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I try to access the "private" pages logged
as a user in the "WebUsers" group I got the login popup, and it's
OK.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I try to access the "private" pages logged
as a user in the "WebHidden" group I see the pages, and it's OK.</FONT></DIV>
<DIV><FONT face=Arial size=2>If after that I login as a "WebUsers" user and
try to see a "private" page I can see it a first time, then if I try to reload
it I got the login popup, and THIS IS THE PROBLEM NUMBER 1 !!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why I can see tha page the first time
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The browser setting is "Check for newer version
of stored pages: Every visit of the page".</FONT></DIV>
<DIV><FONT face=Arial size=2>The page is almost empty, just a rude html
text.</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>The problem number 2 is : how can I redirect the
user to a site specific login page instead of having the login popup
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>The problem number 3 is : how can I show the
user to a site specific error page when he/she do not give a correct login
instead of the HTTP 401 page ?</FONT></DIV>
<DIV> </DIV>
<DIV>Thx all,</DIV>
<DIV> Paolo
Brunasti</DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>