This content has been marked as final.
Show 3 replies
-
1. Re: Global resource directory?
peterj Jul 6, 2009 4:48 PM (in response to oneworld95)For JBoss AS 5.1 the root web app is located server/xxx/deploy/ROOT.war - you could locate everything there.
You could also create the directory server/xxx/deploy/static.war and place everything in there, and then access it via a url like http://hostname:8080/static/some.css -
2. Re: Global resource directory?
oneworld95 Jul 6, 2009 4:50 PM (in response to oneworld95)Thanks, PeterJ. Is it possible to use relative paths to access the global resources in either root or static if the apps are located on the same server?
-
3. Re: Global resource directory?
peterj Jul 6, 2009 4:55 PM (in response to oneworld95)No. Relative paths always are restricted to the web application's directory, otherwise you will have a huge security hole.