You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "David M. Karr" <dm...@earthlink.net> on 2002/04/03 06:38:29 UTC
nonexistent "nested:message" & get properties in Action code
Is there some particular reason a "nested:message" tag has NOT been
implemented? In my Action code, I'm storing an array of "LabelValueBean" where
the label is just the "key" for the label, and in my forwarded-to JSP, I'm
using "bean:message" (at least in my "logic:iterate" code) to display the
label. Now I'm experimenting with using nested:iterate instead, but there is
no "nested" counterpart of "bean:message".
Along similar lines, what is the proper procedure for doing essentially what
"bean:message" is doing, but in the Action code? In other words, I want to
look up properties in my application resource bundle, but in the Action, in
addition to the JSP.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
ServletException:NullPointerException using Taglib extension with ultradev ... solved
Posted by Nicolas De Loof <ni...@cgey.com>.
Solved by recompiling the TLDPARSER class with my local JDK 1.3
(???)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: nonexistent "nested:message" & get properties in Action code
Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Arron" == Arron Bates <ar...@pacific.net.au> writes:
Arron> David M. Karr wrote:
>> Is there some particular reason a "nested:message" tag has NOT been
>> implemented? In my Action code, I'm storing an array of "LabelValueBean" where
>> the label is just the "key" for the label, and in my forwarded-to JSP, I'm
>> using "bean:message" (at least in my "logic:iterate" code) to display the
>> label. Now I'm experimenting with using nested:iterate instead, but there is
>> no "nested" counterpart of "bean:message".
Arron> No, no reason. It was simply missed.
Arron> I've made it, but a need a little more time to test it out. There shouldn't be
Arron> any issues, it's a simple extension.
Arron> Do you want to test it also?... I can mail the implementation to you when it's
Arron> done instead of waiting for the Struts build process to tick over.
That would be fine. I haven't set up to build the latest Struts from source
yet, so this will give me some motivation :) .
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: nonexistent "nested:message" & get properties in Action code
Posted by Arron Bates <ar...@pacific.net.au>.
No, no reason. It was simply missed.
I've made it, but a need a little more time to test it out. There
shouldn't be any issues, it's a simple extension.
Do you want to test it also?... I can mail the implementation to you
when it's done instead of waiting for the Struts build process to tick over.
Arron.
David M. Karr wrote:
>Is there some particular reason a "nested:message" tag has NOT been
>implemented? In my Action code, I'm storing an array of "LabelValueBean" where
>the label is just the "key" for the label, and in my forwarded-to JSP, I'm
>using "bean:message" (at least in my "logic:iterate" code) to display the
>label. Now I'm experimenting with using nested:iterate instead, but there is
>no "nested" counterpart of "bean:message".
>
>Along similar lines, what is the proper procedure for doing essentially what
>"bean:message" is doing, but in the Action code? In other words, I want to
>look up properties in my application resource bundle, but in the Action, in
>addition to the JSP.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: nonexistent "nested:message" & get properties in Action code
Posted by James Mitchell <jm...@telocity.com>.
Not sure about the nested:message problem
from within your perform (or execute) method
...
MessageResources messages = getResources(request);
String myMsg = messages.getMessage("error.noSubscription")
JM
> -----Original Message-----
> From: David M. Karr [mailto:dmkarr@earthlink.net]
> Sent: Tuesday, April 02, 2002 11:38 PM
> To: struts-user@jakarta.apache.org
> Subject: nonexistent "nested:message" & get properties in Action code
>
>
> Is there some particular reason a "nested:message" tag has NOT been
> implemented? In my Action code, I'm storing an array of
> "LabelValueBean" where
> the label is just the "key" for the label, and in my forwarded-to JSP, I'm
> using "bean:message" (at least in my "logic:iterate" code) to display the
> label. Now I'm experimenting with using nested:iterate instead,
> but there is
> no "nested" counterpart of "bean:message".
>
> Along similar lines, what is the proper procedure for doing
> essentially what
> "bean:message" is doing, but in the Action code? In other words,
> I want to
> look up properties in my application resource bundle, but in the
> Action, in
> addition to the JSP.
>
> --
> ===================================================================
> David M. Karr ; Java/J2EE/XML/Unix/C++
> dmkarr@earthlink.net
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>