No,
both are server code, but one is a JSP action (which the server translates to
"normal" code) and one is a scriptlet which includes "normal"
code.
Mattias Jiderhamn
Expert Systems
[EMAIL PROTECTED]
-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 9:59 PM
Subject: Re: what's wrong with this piece of codeYou cant do it this way. Its mixing client code and server code.<%
String newDate = new String();
newDate = "%><jsp:getProperty name="lineItem" property="date" /><%";%>Even if you escape the quotes it wont work. If u need property date of lineItem this way.. just do:<%
String newDate = lineItem.getDate();%>-Tim-----Original Message-----
From: Eric Cho [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 3:46 PM
To: [EMAIL PROTECTED]
Subject: what's wrong with this piece of codeHi all,need a hand....I'm getting errors of :.........java:751: String not terminated at end of line.
newDate = "
^
.........java:757: String not terminated at end of line.
";for this code<%
String newDate = new String();
newDate = "%><jsp:getProperty name="lineItem" property="date" /><%";%>can you point out what i'm doing wrong please?Thanks,Eric
