You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/05/21 14:01:34 UTC
XSP compiled file (.JAVA) makes unwanted line returns
In my XSP page I have this :
if (!datebox.equals("")){
myfirstdate = "AND (pc_enddate > '<xsp:expr>datebox</xsp:expr>')";
}
and in the .JAVA page I have this :
if (!datebox.equals("")) {
myfirstdate = "AND (pc_enddate > '
(datebox) ')";
}
So that causes the error :
Line 1162, column 24: String not terminated at end of line.
Line 1163, column 0: ';' expected.
Line 1163, column 34: Invalid character constant.
How can I do to write : myfirstdate = "AND (pc_enddate > '(datebox)')";
on one line?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSP compiled file (.JAVA) makes unwanted line returns
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Maxime,
what's your Cocoon version? I had a look into Cocoon 2.1's xsp.xsl and
couldn't find where the line break could come from. Can you send the
complete XSP?
Joerg
Maxime.Gheysen@swisscom.com wrote:
> In my XSP page I have this :
> if (!datebox.equals("")){
> myfirstdate = "AND (pc_enddate > '<xsp:expr>datebox</xsp:expr>')";
> }
>
> and in the .JAVA page I have this :
> if (!datebox.equals("")) {
> myfirstdate = "AND (pc_enddate > '
> (datebox) ')";
> }
> So that causes the error :
> Line 1162, column 24: String not terminated at end of line.
> Line 1163, column 0: ';' expected.
> Line 1163, column 34: Invalid character constant.
>
> How can I do to write : myfirstdate = "AND (pc_enddate > '(datebox)')";
> on one line?
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org