Ammended at the bottom is the file its only a few lines..
I just want to run a few small demos to make
sure I can get things running b4 I look into
doing up some proper pages

thanks


filename : time.jsp

<%@ page language="java"%>
<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>



A

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Evans
Sent: Tuesday, October 24, 2000 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Running JSP Demos


That means the web server is treating the file as a static html file. I'm
not familiar with the jigsaw web server, so I don't know what to tell you.
It's probably a stupid question, but does your file have a .jsp extension?

-----Original Message-----
From: Alan Fogarty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 3:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Running JSP Demos


Yes when I view source in browser it does include the jsp code

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Evans
Sent: Tuesday, October 24, 2000 1:44 PM
To: [EMAIL PROTECTED]
Subject: 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

===========================================================================
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

Reply via email to