This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL import Tag and design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL import Tag and design" Watch "JSTL import Tag and design" New topic
Author

JSTL import Tag and design

Vince Chan
Greenhorn

Joined: Nov 21, 2004
Posts: 1
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSTL import Tag and design