Hi. I have a problem with a jsp page and a cocoon page. I use jsp to simply check a user/password and if all is right then set some variables in the session.setAttribute.
I then redirect the user to a cocoon page in wich i should grab the session variable with some xsp-logic commands but....i can't see them! Ok...all of you are saying "What a stupid newbie" :). I know, but pls, it's been a lot of headaches trying to solve this but i still.....have headaches. This is the code inside the jsp page: ******************************** check_login.jsp ********************************* session.setAttribute( "username", theRealUser ); session.setAttribute( "azienda", theRealFirm); //pfw is my custom file format :) response.sendRedirect( "/pfw/rv3/setup_env.pfw" ); ************************************** cocoon page setup_env.pfw *************************************** <?xml version="1.0"?> <?cocoon-process type="xsp"?> <?cocoon-process type="xslt"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-session="http://apache.org/xsp/session/2.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" > <xsp:structure> <xsp:include>java.util.*</xsp:include> <xsp:include>java.io.*</xsp:include> <xsp:include>java.text.*</xsp:include> <xsp:include>javax.*</xsp:include> <xsp:include>javax.*</xsp:include> <xsp:include>org.apache.cocoon.environment.Session</xsp:include> </xsp:structure> <PAGE> <AZIENDA> <xsp-session:get-attribute name="azienda" /> </AZIENDA> <UTENTE> <xsp-session:get-attribute name="username" /> </UTENTE> </PAGE> </xsp:page> **************************************** the tag <AZIENDA> and <UTENTE> are always empty!!! Can anyone help this stupid problem? thanks! R.C. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>