The JSP session and XSP are shared.
But there is a trick for using session instead using <session:get-attribute>
I saw several of the XSP tag cannot be used in implementation..
See blueoxygen.org for references, I used session there. I am not using
session tag, because it cannot be used.
We have to be convensional syntax.
session tag is used for XML, but I found difficulty in xsl logic sheet.
Frans
-----Original Message-----
From: Luis Gois <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, June 19, 2001 8:14 AM
Subject: [EXPLAINED] Sharing session objects between servlets and XSP pages
>I found this at a Tomcat mailing list and since I've seen here some posts
questioning about it and even less concrete
>replies, here it is (simple but works ! I once get it to work like this,
but I've also forgot it later and lost almost a day trying
>to solve this situation) :
>
>"I noticed some posts about people having problems loosing the session
>information when using JSPs with servlets. For examples if I did the
>following in a JSP: <FORM ACTION="/servlet/com.mycom.MyServlet" ... >
when MyServlet got control, the Session
>was empty. I found out that if I did this the "right way" and defined the
servlet in
>my web.xml, e.g., <servlet>
> <servlet-name>theServlet</servlet-name>
> <servlet-class>com.mycom.MyServlet</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>theServlet</servlet-name>
> <url-pattern>someServlet</url-pattern>
> </servlet-mapping> and in the JSP said: <FORM ACTION="someServlet"
... > then all worked fine. You may
>have to adjust the path a bit depending upon where your
>JSP is, etc. The Tomcat mapping trace can help you debug
>mapping problems. This seems like it is a Tomcat bug, but the above is not
only a
>workaround, but a more maintainable way of doing things.
>
>Frank Lawlor
>Athens Group, Inc.
>(512) 345-0600 x151
>Athens Group, an employee-owned consulting firm integrating technology
>strategy and software solutions."
>
>I hope Mr. Frank Lawlor doesn't mind about "posting" to cocoon-users!;)
Hey, thanks a lot Frank!!!!
>
>
>---------------------------------------------------------------------
>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]>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
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]>