On Mon, 4 Feb 2002, L Rutker wrote:
> Date: Mon, 04 Feb 2002 11:19:17 -0500
> From: L Rutker <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: <jsp:useBean /> Scope Bug in 4.01 !
>
> Hi,
> Can you explain what you mean by:
>
> > "Duplicate ids found in the same translation unit
> > shall result in a fatal translation error."
>
> What is duplicate? I am declaring 2 seperate beans based on the condition.
> Neither of them should be visible to the rest of the page. Yet they are
> visible to Tomcat. The
>
JSP follows the XML syntax rules, which look at the *static* content of
your document at compile time. As it examines the incoming text, it
discovers that, in fact, you *are* declaring the same ID twice --
conditional execution is a runtime thing, not a compile-time thing.
Short answer -- "you can't do that".
> Lou
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>