The original purpose of the XML string was to put sample data into session and then get it back out again. It was a temporary measure because the back-end (web processor) components were not finished at that time and I wanted to begin testing the front end already. Now the web processor is completed. In the XSP file, the place where the function was being called is now commented out, so that the data I get from session is now whatever data is put there by the web processor. The function was left intact, however, as a means of documenting what is expected from the web processor. I am updating it now to use StringBuffer.
Ed --- From: Yyy Xxx <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Pizza Date: Fri, 15 Mar 2002 07:25:03 -0800 (PST) On a totally different level... This has XML hard-coded inside a Cocoon XSP as a Java string. That's a little odd. Isn't there some way to bring the XML out of Java and into Cocoon where it may be better utilized? Perhaps a refactoring is in order. >-----Original Message----- >From: Ed Jenkins [mailto:[EMAIL PROTECTED]] >Sent: Friday, 15 March 2002 9:20 >To: [EMAIL PROTECTED] >Subject: Pizza > > >Yesterday, we upgraded to Cocoon 2.0.2dev. In that >version, in >cocoon.xconf, the default compiler was switched from >Javac to Pizza. > >Pizza is reporting some compilation errors in my XSP >files that were OK when > >compiled with Javac. Also, I believe the JLS would not >consider this to be >an error. > >Here is a small example of the code: > ><xsp:logic> > private void setSomething() > { > String s = > " > <one> > <two>three</two> > <two>three</two> > </one> > "; > request.getSession().setAttribute("something", >s); > } ></xsp:logic> > >Here are the errors I'm getting: > >Line 106, column 13: unclosed character literal >Line 106, column 12: illegal start of expression >Line 139, column 14: unclosed character literal > >When I change it to this, the errors go away: > >String s = ""; > >I think it doesn't like it when a string literal is split >up into multiple >lines. What's up with that? > >I see that Pizza is made by SourceForge. Who should I >contact there to ask >about this? www.sf.net is currently down. > >Ed __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.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]> _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --------------------------------------------------------------------- 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]>