Consider the following from section 2.7.1 in the JSP 1.1 Specification:
"A translation unit (JSP source file and any files included via the
include directive) can contain more than one instance of the page
directive, all the attributes will apply to the complete translation
unit (i.e. page directives are position independent). However,
there shall be only one occurrence of any attribute/value defined
by this directive in a given translation unit with the exception of
the import attribute; multiple uses of this attribute are
cumulative (with ordered set union semantics). Other such multiple
attribute/value (re)definitions result in a fatal translation error."
This seems to indicate that if I have a page directive with session="true", then a
fatal translation error will occur if another page directive elsewhere in the page
also contains the session="true" attribute/value pair. This would make it quite
difficult to put page directives in a standard include file.
I suspect that the intent was to cause an error only if the value of an attribute
changes. This is how JRun appears to work. Can anyone confirm that this is the
case?
Thanks,
Rus Duderstadt / AXTIVE Software / [EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html