Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Including Files at Page Translation time  RSS feed

 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
  • 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...
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!