Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL import Tag and design  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

-HTML folder (only stored html and images, handled by web designer)
|- Design_A.htm
|- Design_B.htm
|- images <folder>

-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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!