-
1. Re: Separate IMG directory from WAR file
the-gtm Feb 15, 2006 2:49 AM (in response to redo)You can use the ROOT webapp for this purpose, simply put your /img dir under /deploy/jbossweb-tomcat55.sar/ROOT.war
Your images will be available under http://host/img/pic.jpg
I let you guess the right path for hrefs ;)
Good luck -
2. Re: Separate IMG directory from WAR file
redo Feb 15, 2006 6:20 AM (in response to redo)Yes, but there is still the same problem (if I understood corectly)- they still all are in war file. It means that I must make this war EVERYTIME when have to change something. For example, I must store company worked data and photos. If a new worker entered, I must remake this war file and add new photo, but its much better if I could only upload the necessary file to directory which is visible to my app. In this example(with photos) it still may be ok, but what to do if there are gigs of data (for example files)?
Is there really no solution to make public directory whish is visible for JBoss aplications? -
3. Re: Separate IMG directory from WAR file
redo Feb 15, 2006 7:55 AM (in response to redo)I found something called 'External directories' at
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories.
Maybe someone has already used this feature? Gona try in a while. -
4. Re: Separate IMG directory from WAR file
the-gtm Feb 15, 2006 8:53 AM (in response to redo)ROOT.war is exploded an you can add static files while the server is running.
-
5. Re: Separate IMG directory from WAR file
raist_majere Mar 15, 2006 12:23 PM (in response to redo)ROOT.war is the name of w directory that has the structure of a WAR file, but it's just this, a directory.