jsp problem
hi all,
I'm new to java servlet, when i tried to do my first page that display the date of the day as below:
<body>
Hello! The time is now <%=new java.util.Date() %>
</body>
when i open the page in the web browser the date didn't appear.
I'm not sure if there is a missing part or there is preparation part that i should do before starting doing the programming.
Thanks in advance ^_^
[488 byte] By [
Fatima_qua] at [2007-11-27 7:59:39]

# 2
> How exactly are you running this?
>
> Because this is a really simple piece of code and
> doesnt need much to work.
It's a webpage with extension jsp. I open this page using MS Front page and I run it from there.
I'm not sure if this is the correct way or not because this is my first time that I try to use java with HTML.
# 3
Oh, no. That's not how you run it! You need to get a servlet/ JSP container like Tomcat ( http://tomcat.apache.org ).
Read these:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://java.sun.com/products/servlet/articles/tutorial/
and later, this
http://java.sun.com/developer/onlineTraining/JSPIntro/
JSP are not like HTML pages, they are not static. They are basically programs that run on the server and 'create' the web-page. You should read up a bit on servlets first since JSPs are built on top of Sun's servlet technology.