• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment Location: HTML and JSPs (directly accessible)

 
Ken Severn
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working with Head First Servlets & JSP ... It says that if you deploy them in a war file they can't be under the META-INF directory. If not in a war file they can't be under the WEB-INF directory. They also state, elsewhere, that the rules don't change when deploying with a war file. So, I think that if deployed in war file that they can't be under the META-INF or under the WEB-INF directories. Is that correct?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2785
175
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
H Ken,

You are right. If you want to access the JSPs and HTML files directly, then they can't be under those two directories.

Regards,
Frits
 
Ken Severn
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hellow Fritz,

Thanks a bunch for the confirmation. I appreciate it.

Ken
 
Devaka Cooray
Marshal
Posts: 5216
512
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you are using good practices, you must use JSP pages as viewer components - your JSP files should NOT be directly accessible.
 
Ken Severn
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!