This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am writing a web application which can read in parameter, do some logic, and displayed the corresponding HTML segments from import.
The problem is, the application works would be divided into two parts, one is programming (which handled by programmer) and another is layout design (which handled by web designer). And we would work in different folder under the same context. The structure would look likes below.
MyWebApp -HTML folder (only stored html and images, handled by web designer) |- Design_A.htm |- Design_B.htm |- images <folder> |-images_A.jpg |-images_B.jpg
-JSP folder (pages contain logic, handle by web programmer) | |- JSP which includes either Design_A.htm or Design_B.htm
In order to call the JSP which include the HTML and correctly displayed the images which inside the HTML folder, I am supposed to either need to update the image links inside the html pages or copy those images file to JSP folder, whatever I do with JSTL import or JSP:include.
I am wonder that if those files are all under the same context, (I am using the Tomcat5), I will be able to get the resources by using some "means".
I hope my design can work as if web designer changes the layout, I am not supposed to be noticed. Only I need to know is the correct location of pages inside the HTML folder, and include it.
At last, thanks for your attention and any suggestion is welcome.