permaculture playing cards
The moose likes JSP and the fly likes JSP directive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP directive" Watch "JSP directive" New topic

JSP directive

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Hey all,

JSP directives execute at the time of trasalation and JSP actions get executed at the time of runtime.

But here my doubt is .. I am using directives in my application and I change the static content of a jsp/html file after deploying the application. Does this mean, I am supposed to compile/deploy the whole application in order for my container to recognise about the changes i have made in Jsp {directive} pages?

Rahul Roy
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

With older containers you had to force the JSP that containing the include tags to be recompiled in order for the included pages to be.
The Unix 'touch' command can do this for you.

Most newer containers will check the timestamps on the inlcuded files and recompile all the needed JSPs for you.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Incase your changes are not reflected, you may also have to check web container specific deployment descriptors
like weblogic.xml which may have

Set the value to false to reflect changes in code.

I agree. Here's the link:
subject: JSP directive
It's not a secret anymore!