Newbie - JSP problem.

Z

zalek

I have a space on a Tomcat server where I have some Java servlets.
Compiled servlets are located in
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp/WEB-INF/classes
directory

I started to learn JSP. Into which directory should I put my .jsp
programs?
I put my first HelloWorld.jsp to:
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp

and here is what is what I am getting:

Hello! The time is now <%= new java.util.Date() %>


Thanks,

Zalek
 
A

Arne Vajhøj

zalek said:
I have a space on a Tomcat server where I have some Java servlets.
Compiled servlets are located in
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp/WEB-INF/classes
directory

I started to learn JSP. Into which directory should I put my .jsp
programs?
I put my first HelloWorld.jsp to:
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp

and here is what is what I am getting:

Hello! The time is now <%= new java.util.Date() %>

That is the correct directory assuming you want URL:

http://localhost:8080/myapp/foobar.jsp

You do not have an Apache HTTPD serving the file ?

Arne
 
R

Roger Lindsjö

zalek said:
I have a space on a Tomcat server where I have some Java servlets.
Compiled servlets are located in
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp/WEB-INF/classes
directory

I started to learn JSP. Into which directory should I put my .jsp
programs?
I put my first HelloWorld.jsp to:
/home/catalina/jakarta-tomcat-4.1.29/webapps/myapp

and here is what is what I am getting:

Hello! The time is now <%= new java.util.Date() %>

Does the myapp folder have the folder WEB-INF with a valid web.xml file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top