File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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.
 
 
subject: JSTL import Tag and design