This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See JSP fragments as partial JSP pages to render headers, footers and navigation bars.

These are static files.
Is there any standard location for placing .jspf files?

I read somewhere that they should be placed inside WEB-INF directory. But, WEB-INF is private directory (can't be directly accessed by the client), and the jspf files are static pages. On second thought, I think its apt cause they are not ment to be dirctly accessed by the client.

Any help shall be highly appreciated.

Posts: 42975
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no standard location. Making sure that they can't be accessed directly is a good idea. Keeping them inside of WEB-INF is one way to achieve that.
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason for putting them under WEB-INF is that they will not be interpreted as JSPs if accessed directly. The server will just serve up your source code, as is. This is true of any file without a ".jsp" extension.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!