From: "Brian McGovern" <[EMAIL PROTECTED]>
> Thanks.  I figured I know I can get it to work in servlet code but im
hoping to avoid that.
> I know that single properties are made available by the framework in
taglibs like this <bean:message
> key="error.application_error" />. Ther has to be a simple way to just get
ALL the properties in a particular
> bundle directly from the jsp itself.  Right?

Sorry, I didn't pay attention to the "in my JSP" part.  I'd probably just do
what I already posted in an Action, and stick the Properties object in the
request/session/application [as appropriate].  I haven't done it, but
Properties extends from Hashtable, so JSTL should iterate over it with no
problem.

I do see an org.apache.struts.util.PropertyMessageResources object in
Application scope under key org.apache.struts.action.MESSAGE.  Is that where
the data in ApplicationResources.properties ends up?  I don't think you can
get at its data-- there's a HashMap, but it's protected.

http://struts.apache.org/api/org/apache/struts/util/MessageResources.html

Maybe someone who knows more about the internal workings of Struts can
comment; I'm guessing at this point.

-- 
Wendy Smoak


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

Reply via email to