I'm not sure what you bean by "declare a bean in application scope". You can definitely store any type of java object in the application scope, including java beans.

If you mean can you have an ActionForm with scope="application" in the struts-config file, I seriously doubt this is supported because I can't think of a case in which it would be a good design decision. If some information is needed for the entire application it should be stored in the database or in some type of application-dependent structure, don't you think? I don't think it would be a good idea to store values entered in an HTML form directly into the application scope.

I hope that answers your question,

Matt

[EMAIL PROTECTED] wrote:

As an addition to this question, Is it possible declare a bean in Application Scope in 
Struts?
Perhaps Craig could help us?

-----Ursprungliche Nachricht-----
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 29. August 2003 04:55
An: Struts Users Mailing List
Betreff: Re: What in the world is <bean:page> tag for???


On Thu, 28 Aug 2003, Bill Johnson wrote:



Date: Thu, 28 Aug 2003 19:48:20 -0700 (PDT)
From: Bill Johnson <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: What in the world is <bean:page> tag for???

Ok, unless I missed something this tag seems
completely redundant. It is used to expose the
properties of the PageContext object, but they all
come "pre-exposed" by default with JSPs.

Can someone please explain its purpose?  Were these
variables (session, request, etc.) not initially
implicitly available in JSPs?



They are pre-exposed as scripting variables (which is fine if you want to
write scriptlets), but not anything you can get to with a custom tag that
wants to use expressions (like <bean:write>, just to take one example).


Regards,

Bill


Craig McClanahan

---------------------------------------------------------------------
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]


-- Matthew Sgarlata Senior Consultant Booz Allen Hamilton Inc. Work: 703-377-0871 Fax: 703-902-3608


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



Reply via email to