Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Facing problem with jsp:include tag  RSS feed

 
Ramkumar Rao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I am developing a online shop which helps in user buying different products.

I have a main template which is common to all the pages. This template includes header, footer, main contents dynamically at run time based on conditions.

The header and footer files are stored as html files and sometimes their contents will be updated dynamically by other programs.

I expect the changes to header and footer to be reflected in the pages whenever its been changed, but its not happening currently. I've to restart the application everytime to make the new changes appear in the pages.

Can someone explain this behaviour and is there any workaround to this problem ?
 
Mohd Fuzail
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp:include is suppose to be dynamic in nature. Can you try using c:import instead?

I think there might be some container setting which can help to determine the file being dynamically imported.

Lets wait for more inputs from others and in the mean time try out c:import
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a caching issue to me.
 
Ramkumar Rao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I tried using <%@ import %> tag and still the result is same.

Also after using the import tag and updating the timestamp of the main_template.jsp page, I had a check at the generate servlet class file and it contains the modified HTML data. But the same is not been reflected in the pages.

I tried clearing off the cache, cookies and other things. But none of it worked, it looks like caching issue in server side. Any suggestions to overcome this is well appreciated
 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you try deleting your generated jsp's class file and java file? you'll find them under work directory of your server.
 
Deepa Korecherla
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try clearing the cache and using include
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!