SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Originally posted by Ankit Garg:
If it is a web application, then it MUST have a web-inf directory. However you can test your JSPs and servlets directly in tomcat by placing them in the webapps directory (but then it will not be called a web application, it's just a jsp or servlet in that case)...
Originally posted by Treimin Clark:
Ankit, you cannot test either servlet or jsp, without having a WEB-INF directory.
Sai Surya, SCJP 5.0, SCWCD 5.0, IBM 833 834
http://sai-surya-talk.blogspot.com, I believe in Murphy's law.
Originally posted by Sai Surya:
We can test jsps without WEB-INF directory.
SCJP 5, SCJD 5, SCWCD 5, SCBCD 5, SCJDWS 5
My SCBCD-Notes - OCMJEA 6 notes
Originally posted by Kathir C:
Hi All,
Can anyone post the link that i can see the specfication ?
SCJP, SCWCD.
|Asking Good Questions|
Originally posted by Treimin Clark:
Hi Sai,
Can you explain that how can you run a JSP file, without having a WEB-INF directory (even empty) for your web app directory?
Sai Surya, SCJP 5.0, SCWCD 5.0, IBM 833 834
http://sai-surya-talk.blogspot.com, I believe in Murphy's law.
Originally posted by Sai Surya:
I even tried to create empty folder (webapps/testing) inside webapps and created one test.jsp which will print the timestamp. (<%=new java.util.Date()%> . I still can access the test.jsp with following url without having any WEB-INF directory.
http://localhost:8080/testing/test.jsp
Correct me if I am wrong!
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Originally posted by Sai Surya:
if you see the location of index.jsp, i guess its inside ROOT folder of webapps.
so to execute JSPs we don't have to have WEB-INF. For full fledged web application we need one.
Originally posted by Sai Surya:
I even tried to create empty folder (webapps/testing) inside webapps and created one test.jsp which will print the timestamp. (<%=new java.util.Date()%> . I still can access the test.jsp with following url without having any WEB-INF directory.
http://localhost:8080/testing/test.jsp
Originally posted by Vijitha Kumara:
Yes you can. But that's not a full fledged Web application isn't it.
Sai Surya, SCJP 5.0, SCWCD 5.0, IBM 833 834
http://sai-surya-talk.blogspot.com, I believe in Murphy's law.
Originally posted by Christophe Verre:
Works on Apache Tomcat 5.5.23.
Originally posted by Christophe Verre:
Where did you put the "testing" directory ?
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I think you must put the test.jsp directly inside the webapp directory.
[My Blog]
All roads lead to JavaRanch
Originally posted by Ankit Garg:
Currently I am using Tomcat 6 but previously I used to have Tomcat 5.5 and it used to run fine on it. Did you put the test.jsp file into webapp directory and access it using
http://localhost:8080/test.jsp
Please tell that...
Originally posted by Christophe Verre :
I think Treimin is doing it the right way, but for some reason it doesn't work in his environment....
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Originally posted by Ankit Garg:
Oops! Sorry. What I used to do is place my JSPs inside the <tomcat-home>\webapp\ROOT directory. Then I used to access it as
http://localhost:8080/<file-name>
This may be the wrong way as ROOT contains the tomcat default application or whatever it may be called but this is what was taught to us ...
“Everything should be as simple as it is, but not simpler.” Albert Einstein
[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
scjp5, scwcd5
[My Blog]
All roads lead to JavaRanch
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Don't get me started about those stupid light bulbs. |