DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28981>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28981

<xsp-session> fails with whitespaces

           Summary: <xsp-session> fails with whitespaces
           Product: Cocoon 2
           Version: 2.1.4
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


hi, this is my first bug-report and i hope i'm doing it right ;-)
mille grazie for the great work!

i'm learning cocoon with the "cocoon developers handbook". in chapter 8 there's
an exercise for building a login-page with xsp. the code that breaks goes like this:
    <xsp-session:set-attribute name="user">
        <xsp:expr>user</xsp:expr>
    </xsp-session:set-attribute>;

if i write it like this, without whitespace, it works:
    <xsp-session:set-attribute
name="user"><xsp:expr>user</xsp:expr></xsp-session:set-attribute>;


cocoon's somewhat misleading error-report says "String literal is not properly
closed by a double-quote":

An Error Occurred

Language Exception

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
login_xsp: ERROR 1 (org/apache/cocoon/www/abc/xsp/login_xsp.java): ...
session.setAttribute(String.valueOf("user"), // start error (lines 144-144)
"String literal is not properly closed by a double-quote" " // end error user
"); ; ... Line 144, column 0: String literal is not properly closed by a
double-quote

cause: org.apache.cocoon.components.language.LanguageException: Error compiling
login_xsp: ERROR 1 (org/apache/cocoon/www/abc/xsp/login_xsp.java): ...
session.setAttribute(String.valueOf("user"), // start error (lines 144-144)
"String literal is not properly closed by a double-quote" " // end error user
"); ; ... Line 144, column 0: String literal is not properly closed by a
double-quote

Reply via email to