Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Including Files at Page Translation time

 
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all

If we change an included JSP file, we must update the modification dates
of all JSP files that use it. this is to make the changes done in included JSP file.

i tried an example but in that with out changing the Main JSP file the changes done in the included JSP file get reflects i didn't get how this happens. since the Translation of the Main JSP page happens only at the time of first request after changing the Main JSP page, but with out changing the Main JSP page how the change in include file get reflects...
 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what include you have used.
If you have used the include directive, any change in the included page will not be reflected until you change the parent page.So here we may have do some minor change(adding a space) and saving the main page again.
Or else do a "touch" command in unix to make sure that the page gets recompiled again.
If you use the jsp:include , any change in the included page will be reflected when refreshed.
[ September 29, 2005: Message edited by: Sripathi Krishnamurthy ]
 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i used include directive but still it reflects the changes i made in include file whenever i refreshed the page...
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you using any ANT script which recompiles the entire project by default? what I am suspecting here is that the parent class is always getting recompiled. Check the timestamp of the parent class file and see whether the class has been regenerated.
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have read somewhere though, that some servers recompile the the including JSp whenever the iincluded JSP changes. It's probanly not widely supported though. We use WSAD 5.0 here, and I know it does not do it. We actually have to update the JSP that does the inclusion.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that this new behavior began with Tomcat 5.
[ October 03, 2005: Message edited by: Bear Bibeault ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic