Hi Alan,
When I only remove the '<' at the beginning of the following line, then
this JSP page is working with me.
<Your hostname: <%= request.getRemoteHost() %>
Regards,
Marcel van Kooy
> -----Oorspronkelijk bericht-----
> Van: Scott Evans [SMTP:[EMAIL PROTECTED]]
> Verzonden: dinsdag 24 oktober 2000 14:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: Running JSP Demos
>
> View the source in the browser - does it include your jsp code?
>
> -----Original Message-----
> From: Alan Fogarty [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 24, 2000 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: 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
>
> ======================================================================
> =====
> 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
===========================================================================
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