Missing = at the beginning and ; at the end. Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291
-----Original Message----- From: John Trollinger [mailto:jakarta@;trollingers.com] Sent: October 30, 2002 12:51 PM To: 'Tomcat Users List' Subject: RE: compile error? If you want to see the date you must do <% java.util.Date() date = new java.util.Date(); %> <%= date %> > -----Original Message----- > From: Tumy, Brad [mailto:TumyB@;Pragmatics.com] > Sent: Wednesday, October 30, 2002 12:37 PM > To: 'Tomcat Users List' > Subject: compile error? > > > I just installed Tomcat on my server and I am trying to run a > test page. I created a new jsp file in the directory: > C:\Tomcat\jakarta-tomcat-4.1.12\webapps\ROOT > > The only code I put on this page was: > <% new java.util.Date() %> > > I got the following error: > *********************************************** > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 12 in the jsp file: /test.jsp > > Generated servlet error: > [javac] Compiling 1 source file > > C:\Tomcat\jakarta-tomcat-4.1.12\work\Standalone\localhost\_\te > st_jsp.java:49 > : ';' expected > new java.util.Date() > ^ > 1 error > *********************************************** > > If I put the semi-colon into the code like it's indicating, I > don't get anything display. > > I would appreciate any help with this. > > Brad Tumy > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
