cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28981] New: - <xsp-session> fails with whitespaces
Date Fri, 14 May 2004 15:03:00 GMT
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: dev@cocoon.apache.org
        ReportedBy: tom@stray.net


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

Mime
View raw message