Are you able to see the log output of the server?
maybe it gets a java compilation error.
You should import java.util in oder to use Date.
I'm new in this world too, bau I expect this helps you.
Dani
----- Mensaje Original -----
De: Alan Fogarty <[EMAIL PROTECTED]>
Fecha: Martes, Octubre 24, 2000 1:00 pm
Asunto: Running JSP Demos
> I am new to servlets / jsp
> I wonder could anyone tell
> me what I need to do exactly to
> run a jsp demo. I have both
> Jigsaw and apache for windows and I
> have tried samples in both... the html
> is output but all the java does not run..
>
> It may be ClassPath problems or something
>
> this is my sample
> <html>
> <head>
> <title>First Page</title>
> </head>
> <body>
> <H3>Today is:
> <%= new java.util.Date() %>
> </H3>
> <Your hostname: <%= request.getRemoteHost() %>
>
> <% if (Math.random() < 0.5) { %>
> Have a <B>nice</B> day!
> <% } else { %>
> Have a <B>lousy</B> day!
> <% } %>
>
> </body>
> </html>
>
> It is very simple but I cannot get proper output
> on my machine I get this
>
> Today is:
> Have a nice day! Have a lousy day!
>
>
> Any Ideas anybody...
>
> thanks
>
> Alan
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
________________________________________________________________
Consigue tu cuenta gratuita de acceso a internet y de correo en
http://www.navegalia.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets