Hello Christian, Thanks again for your help and your availibility. Of course, I meant Session logicsheet and not ESQL one...Sorry... I've tried to launch the code you've suggested:
<?xml version="1.0"?> <xsp:page 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" create-session="true"> <xsp:logic> Object items = <xsp-session:get-attribute name="cart.items"/>; if (items == null) items = new Vector(10,5); ((Vector) items).add(<xsp-request:get-parameter name="item"/>); request.getSession().setAttribute(items); // logicsheet only supports setting Strings objects :-( // thus do it manually. </xsp:logic> </xsp:page> But, I receive following error message: type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling session3_xsp: Line 78, column 6: illegal start of type Line 79, column 6: illegal start of type Line 88, column 24: expected Line 88, column 14: cannot access class getSession; file request\getSession.class not found Line 73, column 47: variable session not found in class org.apache.cocoon.www.mount.essai.session3_xsp Line 0, column 0: 5 errors sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling session3_xsp: Line 78, column 6: illegal start of type Line 79, column 6: illegal start of type Line 88, column 24: expected Line 88, column 14: cannot access class getSession; file request\getSession.class not found Line 73, column 47: variable session not found in class org.apache.cocoon.www.mount.essai.session3_xsp Line 0, column 0: 5 errors I've cheked out in the source code of the xsp file generated: 68 /* User Class Declarations */ 70 Object items = 72 ( 73 XSPSessionHelper.getSessionAttribute(session, 74 String.valueOf("cart.items"), 75 null) 76 ) 77 ; 78 if (items == null) items = new Vector(10,5); 79 ((Vector) items).add( 81 ( 82 (XSPRequestHelper.getParameter(objectModel, 83 "item", null, 84 null, 85 null)) 86 ) 87); I can't figure out why the line 78 throws an illegal start type...Do you see what can be wrong? Regards, Cyril. PS: In the code, you've written: request.getSession().setAttribute(items); shall we not write instead request.getSession().setAttribute("cart-item", items); as in the traditional java servlet? I'm not sure... --------------------------------------------------------------------- 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]>