cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <cocoonge...@yahoo.com>
Subject RE: <xsp-session> : Bug with Cocoon? or Bug with programmer?
Date Tue, 12 Nov 2002 04:41:20 GMT
Are you sure you're looking at the right section of
your xsp?  The section you've quoted doesn't match,
making it most likely that something else in your xsp
is causing the problem.  Search for "fruit" in the
generated java file you've been looking at - you
should find something almost identical to:

session.setAttribute(String.valueOf("fruit"),"Apple");

XSPRequestHelper should never enter the picture.

By the way, the XSP creates a java file to be
compiled, not JSP.

Geoff Howard

--- Tom Place <trp99c@cs.nott.ac.uk> wrote:
> My apologies. I made a typo on this message (not in
> cocoon). The line
> should have read
> <xsp-session:set-attribute
> name="fruit">Apple</xsp-session:set-attribute>
> I have included me original message below (with
> correction)
> 
> > 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:    
> <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> > 
> 
>
---------------------------------------------------------------------
> 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:    
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> 
> 
> 
>
---------------------------------------------------------------------
> 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:    
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> 


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message