Request scope came up under the original bug (although it doesn't say why
not):

http://issues.apache.org/bugzilla/show_bug.cgi?id=5518


The thinking behind "page" rather than "request" scope is in this thread:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg10893.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg10917.html

This is something you could change in struts yourself - you would need to:

* extend TagUtils and override the isXhtml(PageContext) method to check
request instead of page scope
* Create your own version of XhtmlTag to store the key in request scope.

Since this issue seems to have been fully debated I doubt you will get the
behaviour changed - unless you propose something that is backward compatible
with an option to "switch on" request scope.

Niall


----- Original Message ----- 
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[EMAIL PROTECTED]>; "Martin Cooper"
<[EMAIL PROTECTED]>
Sent: Wednesday, September 01, 2004 9:53 AM
Subject: Re: why has xhtml="true" only pageScope effect ?


>
>
> > On Wed, 1 Sep 2004 09:41:08 +0200, Nicolas De Loof
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello all,
> > >
> > > 2 notes :
> > >
> > > - I'd like to test the 1.2.3 release on my app, what about bad jars in
*1.2.3-lib.zip dist ?
> > > Should I download the full dist for those tests ?
> >
> > You probably tried to grab the distribution as it was still being
> > uploaded. It's only been there for a few minutes. Please try again,
> > and let me (personally) know if you still have a problem.
>
> Works fine with my app. Thanks.
>
>
> Any info on my second question ?
>
> Nico.
>
> > --
> > Martin Cooper
> >
> > > - I'm writing an app with xhtml format and use the xhtml attribute of
<html:html> tag
> > > Why isn't the Globals.XHTML_KEY flag put into request scope ? I need
to set a <html:xhtml> on every jsp of my app,
> and I
> > > don't think about use case where all JSP building a response should
NOT render the same way.
> > >
> > > Nico.
>
>
>
> Our name has changed.  Please update your address book to the following
format: "[EMAIL PROTECTED]".
>
> This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to