> <xsp-session:set-attribute>name="fruit">Apple</xsp-session:set-attribute> ^ It looks to me like a misplaced ">". You are attempting to evaluate (name="fruit" > Apple) or some such. HTH, Mark.
> -----Original Message----- > From: Tom Place [mailto:trp99c@;cs.nott.ac.uk] > Sent: Tuesday, 12 November 2002 7:49 > To: [EMAIL PROTECTED] > Subject: <xsp-session> : Bug with Cocoon? or Bug with programmer? > > > Hi All, > > I emailed recently about a problem using session variables in cocoon > (this was solved by the modifying of config.xconf - thanks to Sylvain > Wallez). > > Now the problem I have is the following line in XSP : > > generates the following JSP : > XSPRequestHelper.setSessionAttribute(objectModel, > String.valueOf("verified"), > this.characters("False"); > ); > > Now I'm sure most of you will be able to spot a miss-placed semicolon > after the ("False") which gives me a compilation error. > > However if I put the following XSP in it seams to cure this : > String myParam = "Apple"; > <xsp-session:set-attribute>name="fruit"><xsp:expr>myParam</xsp > :expr></xs > p-session:set-attribute> > > I get correct JSP generated (at that point anyway). However I > still get > a NullPointerException. > This originates at > org.apache.cocoon.components.language.markup.xsp.XSPRequestHel > per.setSes > sionAttribute(XSPRequestHelper.java:454) > > Anyone come across this before? > > I am using Cocoon 2.03 running on Tomcat 4.1.12 > > Cheers > > Tom Place > > > --------------------------------------------------------------------- > 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]> > --------------------------------------------------------------------- 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]>