I am having problems with seperating static contents to a different project in WSAD. The framework used in presentation layer is Struts/Tiles but I am not sure whether this is to be posted in some other sections. But I feel that its tiles issue.
I had one web project(module) called SOLWeb in an ear called SOL. This web module had every jsp as well as static contents earlier. SOLWeb has context root set as "SOLWeb"
Now, I created another ear file called SOLStatic which holds a web project(module) called SOLStaticWeb with context root set as "SOLWeb/static". All the static contents are moved to WebContent folder of this project now.
With this set up, with out having to change anything in the files, all jsps look fine. Point to be noted is that these jsps internally are refering static contents(via url rewrite) like jpg, css etc which is now in the other newly created static project. So effectively whenever we do struts forward to a jsp(which is in the same project) - it works fine where as if its a struts forward to an html(in the other new project) - it says file not found.