• Post Reply Bookmark Topic Watch Topic
  • New Topic

Directory Structure for JSP  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a jsp file hello.jsp and placed it in the directory "exam" under webapps. I am using tomcat.

There is nothing else in the "exam" directory apart from the hello.jsp file. I started the tomcat and tried to access the page as

http://localhost:8080/exam/hello.jsp

It didnt work. But when I created a web-inf directory and the subdirectories like classes, lib it worked.

What is the reason? Does executing the jsps need a directory structure.
 
Author and ninkuma
Marshal
Posts: 66676
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Please see the Tomcat documentation for details.
 
Screaming fools! It's nothing more than a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!