| Author |
resources location in developement environment?
|
ankur rathi
Ranch Hand
Joined: Oct 11, 2004
Posts: 3829
|
|
Where should I place resources (xml files/properties files etc) in developement environment? In production environment, they should go in *application*-> WEB-INF-> classes. Right? Thanks.
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
You can put them anywhere you want, as long as you make sure they go to the place you need them to be when you build your deployable web application. Some tools or IDEs will force you to use a certain directory layout for your source files, others don't.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
ankur rathi
Ranch Hand
Joined: Oct 11, 2004
Posts: 3829
|
|
You can put them anywhere you want, as long as you make sure they go to the place you need them to be when you build your deployable web application.
Yes, Actually we don't even need to place them in developement environment, if we can directly place them in production environment at right place, because they are being used only at the time execution. Right?
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Have a look at java.lang.String)" target="_blank" rel="nofollow">ServletContext.getResourceAsStream It can be used to get resources relative to the root of the application.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: resources location in developement environment?
|
|
|