• 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

How do I force a JSP recompile?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can always delete the offending jsp servlets but is there a programmatic way I can force WebLogic to recompile the jsp's for me
 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andy,
The <jsp-descriptor> element in the weblogic.xml file defines parameter names and values for JSPs. You can set the interval (in seconds) at which WebLogic Server checks the time stamp with the pageCheckSeconds attribute. If you set this attribute to zero, WebLogic Server checks the time stamp on every request. A value of "1" would disable the reloading of the JSP.
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
0
</param-value>
</jsp-param>
</jsp-descriptor>
Does this solve your problem?
 
Andy Brookfield
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
0
</param-value>
</jsp-param>
</jsp-descriptor>
Does this solve your problem?[/B]


Sorry Joe, it doesn't ... We've got a whole site that is in the process of being "revamped" because there are too many hard codes involved... specifically, these hard codes are within "include files" and apparently WebLogic doesn't recompile the JSPs easily, that's why I'm after a "programmatic" or otherwise way to force a recompile of the JSP's "real-time"
 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm... interesting problem. I'm sure there must be a way to do it programmatically, I just don't know of one off the top of my head. I'll try some stuff out and ask around. It could be something useful to know.
 
Andy Brookfield
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe McGuire:
Hmm... interesting problem. I'm sure there must be a way to do it programmatically, I just don't know of one off the top of my head. I'll try some stuff out and ask around. It could be something useful to know.


I sure hope there is a way without either deleting the class files, or, physically "touch"ing all those jsp's
 
Greenhorn
Posts: 3
MyEclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Touching the JSP's is exactly what you want to do. cd to the root of your weblogic or application folder and execute:

find ./ -name '*.jsp' -exec touch {} \;

That is the easy way.

 
reply
    Bookmark Topic Watch Topic
  • New Topic