You should not be using the curly braces in line 7. Try replacing it
with the following:
7. <%= (new java.util.Date()).toLocaleString(); %>
Dave
> -----Original Message-----
> From: Sunil Dua [mailto:[EMAIL PROTECTED]]
> Sent: 14 September 1999 09:02
> To: [EMAIL PROTECTED]
> Subject: How do i run JSP?
>
>
> Hello there
>
> I am learning JSP.
> I wrote(in fact copied) a small jsp script which is as follows:
> 1. <%@ page language="java" %>
> 2. <HTML>
> 3. <BODY>
> 4. My first jsp<BR>
> 5. <% int i=5; %>
> 6. <%= i%><BR>
> 7. <%= {new java.util.Date()}.toLocaleString(); %>
> 8. </BODY>
> 9. </HTML>
>
> I saved the file and when i run the file without line no 7 it run
> successfully otherwise show error. Pls. help me out.
>
> Regards
> Sunil Dua
> Note : I have java server development kit ver 1.0 eval version running
> fine with my servlets.
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html