Hi
all,
need a handI'm
getting errors of :
.java:751: String
not terminated at end of
line.
newDate =
"
^.java:757:
String not terminated at end of
line.
quotes in quotes... escape the inner
quotes
Dave Deniman
- Original Message -
From:
Eric
Cho
To: [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 1:45
PM
Subject: what's wrong with this piece of
code
Hi
all,
need a handI'm
%>
-Tim
-Original Message-From: Eric Cho
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 27, 2001 3:46
PMTo: [EMAIL PROTECTED]Subject: what's wrong
with this piece of code
Hi
all,
need a handI'm
getting errors of :
.java:751: Stri
ges specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Eric Cho
Sent: Tuesday, November 27, 2001 3:46 PM
To: [EMAIL PROTECTED]
Subject: what's wrong with this piece of code
Hi all,
need a handI'm getting errors of :
.java:751: String no
Title: RE: what's wrong with this piece of code
Actually, I think it's because you're mixing double quotes in your strings and within the tag. try using single quotes or escaping the double quotes.
ie:
String newDate = "%><%";
However, if you just want th
ovember 2001 20:46To:
[EMAIL PROTECTED]Subject: what's wrong with this piece of
code
Hi
all,
need a handI'm
getting errors of :
.java:751: String
not terminated at end of
line.
newDate =
"
Chen, Gin
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001
9:59 PMSubject: Re: what's wrong with this piece of
code
You
cant do it this way. Its mixing client code and server
code.
<% String newDate = new String(); newDate =
"%><%";
%>
-Tim
-Original Message-From: Mattias Jiderhamn
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 28, 2001 7:54
AMTo: [EMAIL PROTECTED]Subject: Re: what's wrong
with this piece of code
No,
both are server code, but one is a JSP action (which the server translates to
"no
OTECTED]Subject: Re: what's
wrong with this piece of code
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
E