[opencms-dev] Re: User/Webuser login

Armen Markarian markarian at inexweb.de
Thu Aug 14 12:12:01 CEST 2003


Hi Jens, how did u created the user? Via JSP or over the workplace? If u
created the user via JSP use the cmsObj.addImportUser() method and set
the Additional-Hashtable

See at the following code:

Hashtable additionalInfos			= new Hashtable();
additionalInfos.put(I_CmsConstants.C_ADDITIONAL_INFO_TOWN,"Neuss");
additionalInfos.put(I_CmsConstants.C_ADDITIONAL_INFO_ZIPCODE,"41460");

try
	{
	// create a new cms user
	CmsUser createdUser =
cmsObj.addImportUser(username,cmsObj.digest(newPWD),cmsObj.digest(confir
mPWD),telefon,firstname,lastname,email,0,additionalInfos,defaultUserGrou
p,adress,section,type);
}
catch (Throwable t){
	
System.out.println("PRJ-HOTELSUITE-HCC-ADMIN-USERDATA-CHILD-RESULT
(CREATE USER): " + t);
	String searchStr = "Duplicate entry";
	if(t.toString().indexOf(searchStr) != -1) {
		AlreadyExistsException = true;
	}						
}		

I seggest u did not set the Hashtable!?			

Good luck

Regards

Armen

-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von
opencms-dev-request at opencms.org
Gesendet: Donnerstag, 14. August 2003 11:00
An: opencms-dev at opencms.org
Betreff: opencms-dev digest, Vol 1 #362 - 4 msgs


Send opencms-dev mailing list submissions to
	opencms-dev at opencms.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.opencms.org/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
	opencms-dev-request at opencms.org

You can reach the person managing the list at
	opencms-dev-admin at opencms.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of opencms-dev digest..."


Today's Topics:

   1. Re: Use of News (Joachim Arrasz)
   2. problems with installation (James Djunaedy)
   3. Urgent: static export problem (Ivan Jelenic)
   4. User/Webuser login (Jens Rickhoff)

--__--__--

Message: 1
Date: Wed, 13 Aug 2003 22:14:50 +0200 (CEST)
Subject: Re: [opencms-dev] Use of News
From: "Joachim Arrasz" <info at arrasz.de>
To: <opencms-dev at opencms.org>
Reply-To: opencms-dev at opencms.org

Hi,

the channels is a granularity of news as whole thing. You can configure
channels and use them seperately on your website. then, for using you
have to use the templates in
system/modules/com.opencms.modules.homepage.news/templates
There you find NewsItem.jsp for example. Have a look at his code and its
easy to understand , when you have little experience in developing jsp
Pages Hope this helps

Achim


-- 
Questions about OpenCMS?
--> www.synyx.de/board


> Francisco J. Navarro>
> Hello all,
>
> I have downloaded the news module from a page and have installed on my

> OpenCms system. The tables in the database are ok and i can view the 
> new icon in the Administrator view. When i pick in the news icon i can

> see the entrys and can add, delete or edit them. But, my question 
> is.... How can i use them in my website? This is, how can i see them 
> in a web page. Are there any template to edit or to add to my project 
> to do it or have i do it? And the other question... What's the meaning

> of the other icon, "Tele CMS Chanels"? How can i use it?
>
> Thanks a lot to those who help us to learn
>
> Fran




--__--__--

Message: 2
To: opencms-dev at opencms.org
From: "James Djunaedy" <jdjunaedy at icnpharm.com>
Date: Wed, 13 Aug 2003 13:46:06 -0700
Subject: [opencms-dev] problems with installation
Reply-To: opencms-dev at opencms.org


John,

Thanks for your help! Actually, I reinstalled everything except this
time I used jakarta-tomcat-4.1.27-LE-jdk14.zip not the .exe one. It
seems to work now. the only difference that I notice is the folder
names. When I ran the .exe version, it named the folder "Tomcat 4.1"
(there's a space between Tomcat and 4.1). With the zip version, the
folder is named "jakarta-tomcat-4.1.27-LE-jdk14" (no spaces in between).
Thank you for your desire to help.


************************************************************************
        James G. Djunaedy
        Programmer Analyst / Web Developer
        ICN Pharmaceuticals, Inc.
        P: (800) 548-5100 X2240
        F: (714) 641-7269
        jdjunaedy at icnpharm.com

************************************************************************



--__--__--

Message: 3
From: "Ivan Jelenic" <ivan.jelenic at nbs.yu>
To: <opencms-dev at opencms.org>
Date: Thu, 14 Aug 2003 08:59:29 +0200
Subject: [opencms-dev] Urgent: static export problem
Reply-To: opencms-dev at opencms.org

This is a multi-part message in MIME format.

------=_NextPart_000_0021_01C36242.5EB10950
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi,

I wrote about this but there was no reply. I have problems with static =
export. In opencms.properties static export is set to true. When I =
publish my project nothing is exported in export folder. A message File
= does not longer exist, skipping export is always shown.

Please, help.

Best regards, Ivan.
------=_NextPart_000_0021_01C36242.5EB10950
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2"> <META content=3D"MSHTML 6.00.2800.1170"
name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT
face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial
size=3D2>I wrote about this but there was no = reply. I have=20 problems
with static export. In opencms.properties static export is set = to
true.=20 When I publish my project nothing is exported in export folder.
A = message <SPAN=20
style=3D"COLOR: #666666"><FONT color=3D#000000>File does not longer =
exist, skipping=20 export is always shown.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
style=3D"COLOR: #666666"></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2><SPAN style=3D"COLOR: =
#666666">Please,=20 help.</SPAN></FONT></DIV> <DIV><FONT face=3DArial
size=3D2><SPAN=20
style=3D"COLOR: #666666"></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2><SPAN style=3D"COLOR: =
#666666">Best=20 regards, Ivan.</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0021_01C36242.5EB10950--



--__--__--

Message: 4
From: "Jens Rickhoff" <jens at visualteam.de>
To: <opencms-dev at opencms.org>
Date: Thu, 14 Aug 2003 10:13:40 +0200
Subject: [opencms-dev] User/Webuser login
Reply-To: opencms-dev at opencms.org

Hello list,

I am running into a problem trying to login a user or a webuser on my
website. I created a webuser (I checked that he got correctly created),
but when I try to log him in by:

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
CmsObject cmso = cms.getCmsObject(); cmso.loginWebUser(username,
password);

I get the following exception:

org.apache.jasper.JasperException: Resource loader error in file
'/system/modules/com.ovsoftware/elements/head.jsp'
Root cause:
org.apache.jasper.JasperException: com.opencms.core.CmsException:
[com.opencms.file.mySql.CmsDbAccess] /default/vfs/en/login/login.html
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:2
54)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
... and so on

I get the same exception when trying to log in a regular CMS user by
using the loginUser(user,pw) method.

Any ideas?
Maybe somebody already tried this and can help with additional JSP
code...

Greetings,
Jens



--__--__--

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit 
http://mail.opencms.org/mailman/listinfo/opencms-dev

End of opencms-dev Digest




More information about the opencms-dev mailing list