Hi cocoon-masters, i have a little problem. I have modified the protected-example a little bit...added three new parameters:
My auth.xml: <auth-descriptor> <connection>db-sts-dc</connection> <table name="sts_user"> <select dbcol="pk_Kennung" request-param="username" to-session="username"/> <select dbcol="Passwort" request-param="password" to-session="password"/> <select dbcol="fk_Isdh" to-session="department_id" type="string"/> <select dbcol="fk_Prodl" to-session="prodl"/> <select dbcol="fk_Isdh" to-session="isdh"/> </table> </auth-descriptor> Now i have changed my param.xml like this: <parameters-descriptor> <parameter name="username" type="string" nullable="no"/> <parameter name="password" type="string" nullable="yes"/> <parameter name="prodl" type="string" nullable="yes" default="PRODL"/> <parameter name="isdh" type="string" nullable="yes" default="ISDH"/> <!-- <parameter name="xxxdepartment_id" type="string" nullable="yes" default="xxx0"/> --> <!-- <parameter name="xxxtheme" type="string" nullable="yes" default="xxxsimple"/> --> </parameters-descriptor> Now i want to get a output of this datas: I use this .xsp: <page> <motd> <logininfos> <para>Login: <session:get-attribute name="username"/></para> <para>Password: <session:get-attribute name="password"/> ... wird spaeter ausgeblendet</para> <para>Prodl-Zugriff: (department_id) :::<session:get-attribute name="department_id"/>:::</para> <para>Prodl-Zugriff: (prodl) :::<session:get-attribute name="prodl"/>:::</para> <para>Isdh-Zugriff: (isdh) :::<session:get-attribute name="isdh"/>:::</para> <xsp:logic> java.util.List m_Liste=XSPRequestHelper.getSessionAttributeNames(objectModel); java.util.Iterator i=m_Liste.iterator(); while (i.hasNext()) { String tmp=(String)i.next(); </xsp:logic> <para><xsp:expr>tmp</xsp:expr></para> <xsp:logic> } </xsp:logic> </logininfos> Now the miracles begin: In former days I tryed fill the deparment_id with values of pk_Prodl. And - as I expected - it worked. But now about 1 week later (i was on vacation), new login, changed sourcefiles (more then once and - of course - saved), restarted tomcat over and over again, deparment_id still offers the values of pk_Prodl freshly distributed out of the database. Even if i delete (not only commented out in the sourcefiles!) all traces of department_id in all xml, xsl, xsp files i could find...the html--page always shows the values of pk_Prodl in the department_id. Whatever i do i cant get ride of this...but unfortunatly i cant get any other parameters then password, department_id or username (as you can see i listed all parameters the session knows). After one day of work, i managed to get ride of theme-parameter...the second mystical parameter alway containing "simple"...but do not ask why it suddenly disapeared. Only password, as new parameter, work...and again...dont ask why... So now: Can someone tell my what i must change, delete or what ever do to access the parameters i want to read out of my database in my xsp-files while using authentification offered by cocoon? cu, Christian PS: By the way: Protection (Login, logoff) of all pages works... -- ------------------------------------------------------------ Schröter, Christian Siemens Business Services GmbH & Co. OHG SBS D BS ECS 3 Tel.: +49 911 654 2355 Fax: +49 911 654 2108 Mobil: +49 160 97843762 eMail: [EMAIL PROTECTED] ------------------------------------------------------------ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>