• 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

JSP changes does not reflect

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Websphere 5.1 Test Environment
I have a jsp named "header.jsp" included in all other jsps.

<%@ include file="../common/header.jsp" %>

When i change header.jsp i expect the changes to be reflected in all jsps
But its getting reflected only in single jsp

The "Build Automatically" option is enabled.
The server is in Debug mode
I tried re-building the project, and restarting the project and also restarting the server but no luck

Could you please help me out

Thank you in advance
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak,
A JSP is only recompiled when the JSP changes. Your outer JSPs don't know that the header changed.

You can delete the compiled JSPs from the WebSphere test server to clear this cache. This will force a recompile for all JSPs which will reflect your header changes.
 
Deepak Vadgama
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

Thanks a lot for the information, i didn't know that, JSP (included one) changes are not detected automatically by the server.

Could you please also tell me how do i clear the server cache.
I have Websphere Application Server 5.1 Test Environment.

I went through some sites, to find the steps to clear the cache.
Do i need to install cachemonitor application on my server, or is there any simpler way.

Thank you in advance.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Deepak Vadgama:
Could you please also tell me how do i clear the server cache.
I have Websphere Application Server 5.1 Test Environment.


I used to know this off the top of my head, but I've been on RAD 6 for too long and they've changed how to do it. It's just a directory on disk though. Try searching your hard drive for the name of your JSP. I vaguely remember in being under workspace/.plugins/.metadata, but it might have been under the install directory.


I went through some sites, to find the steps to clear the cache.
Do i need to install cachemonitor application on my server, or is there any simpler way..


CacheMonitor is for WebSphere command caching. It does not empty the JSP cache.
 
Deepak Vadgama
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

You were right. I searched for files with same names as my jsps on my disk, and found that the jsp cache(java/class files) resides at following path

Workspace\.metadata\.plugins\com.ibm.wtp.server.core\tmp0\cache\localhost\server1\EAR\war\

After deleting the class files, i ran the application, and now all jsps are reflecting the changes in child jsp.

Thanks a lot for your help.
You saved me lot of time of R&A (Research and Analysis)
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak,
No problem. Thanks for posting the directory in case anyone else has this problem in the future!
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic