• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

A jsp deployment problem

 
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

In my application, many jsp files include the header.jsp to display the head.
There are two ways, both static include and dynamic include.
The static include is <%@ include file="/jsp/header.jsp" %>.
The dynamic include is <jsp:include page="/jsp/header.jsp" flush="true">.
There was a requirement to update the header.jsp and every page that includes the header needs to display the new header.
It seems that I just need to deploy the updated header.jsp. But that doesn't work due the web container setting.
I also need to re-deploy all those includer jsp files to make sure their time stampt is more recent then the header.jsp.
That caused a big maintenance problem.
I am not very sure if the web container is Sun iPlanet.
Do you have any comments for the sustain?
Thanks.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The static includes need to be touched so they'll recompile with the new JSP contents--the solution is not to use static includes for JSPs, unless you're okay with the additional work.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much, David.
 
Greenhorn
Posts: 20
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<%@ include file="/jsp/header.jsp" %> must be used only for static contents. If the contents changes at run time then we must use<jsp:include page="../../header.jsp" />.
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic