when you use the include directive, the code, or the jsp file, is inserted
at compile time...in other words, if you modify the contest of the file
that's being included, in order for the modification to take effects, you
must also re-compile your script that is including the modified file...i
hope that helps...whereas if you are doing a dynamic include, things get
included and dynamically generated at runtime...
Chris
----- Original Message -----
From: "Frederick Aubert" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, May 11, 2002 4:19 AM
Subject: JSP Include Directive
Hi,
According to the JSP docs on Sun website, one can use <jsp:include
page=�/includes.txt� /> to include static content, such as methods that will
be reused from different components of the webapp. I wanted to share a
�securityCheck� method to reuse from each single places where security was
required. I did place my code in a includes.txt that I tried to load from a
couple of JSP pages. However even when placing the jsp include tag, nothing
seems to be done since whenever I try to call securityCheck I get a method
not found error... Is the include directive not supposed to work that way?
How can I achieve this?
Sincerely, Frederick
PS: I tried to misspell the resource URL but the compiler did not notice
anything...
---------------------------------------------------------------
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,' [EMAIL PROTECTED]
(il),-'' (li),' ((!.-'
---------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>