Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Directory Structure for JSP  RSS feed

 
stu ware
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!