• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Source code for servlets

 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Just thought I'd throw this out there to see if there were any incredulous responses..

Would it be a heinously bad idea to have the source of my servlets within the following directory: <webapp>/WEB-INF/src

You're not supposed to be able to browse WEB-INF, and if I wanted to keep my source and compiled code 'together', this would be the only 'safe' place I can think of.

Anyone have a horror story?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was thinking the same thing (to protect JSPs from direct access in a MVC), the only problem I can think of is that it would be likely to specific to an implementation.
If it was safe in (for example) Tomcat 1 and 2, no way of knowing if it'll work in 3 and 4 or in Weblogic...
Dave.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My thought on that is this:

If a vendor 'breaks' the opaqueness of WEB-INF (like iPlanet did in SP3), then customers will raise stink, and a patch will be available (like iPlanet customers did, and how iPlanet responded).

I think I'd risk it.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic