For the tags, I would put in "host" and "eclipse_banner", Herbert.
At 11:23 AM 4/23/2004, Hubert Rabago wrote:
Well, I'm not sure the Struts tags (or Bean/PropertyUtils) can evaluate
SiteConstant.HOST. The last time I remember that somebody asked about a
similar situation, I think the suggestion
Well, I'm not sure the Struts tags (or Bean/PropertyUtils) can evaluate
SiteConstant.HOST. The last time I remember that somebody asked about a
similar situation, I think the suggestion was to provide accessors for them.
I know, it ain't what you wanna hear, but I guess they just weren't written
The value of SiteConstant.HOST is just "host" and is merely the session
attribute key for the Host object, Herbert. I could have just put in
"host" and "ecliplse_banner" but I have this fear of hard
coding. LOL Does that change your thoughts?
At 09:29 AM 4/23/2004, Hubert Rabago wrote:
Those
Thanks, Herbert,
Isn't this solution supposed to be the standard solution as shown in the
documentation? Here is what the documentation on mapped properties says:
The idea of "mapped properties" as opposed to "indexed properties" is that
the property represents a "map" type, as opposed to an a
Those tags are meant to work with JavaBeans-style classes. I think there's
been lots of questions about accessing stuff like SiteConstant.HOST and
SiteConstant.ECLIPSE_BANNER, but I don't remember seeing a solution for that.
One way around it (not that it's the best way) is to provide accessors t
t 04:22 PM 4/21/2004, Niall Pemberton wrote:
> > > >Haven't done this but either your class needs to be a Map
> implementation
> >or
> > > >you need getter/setter for your Map
> > > >
> > > > public void setMyMap(Map myMap)
>
;-) Michael McGrady
> > >
> > > At 04:22 PM 4/21/2004, Niall Pemberton wrote:
> > > >Haven't done this but either your class needs to be a Map
> implementation
> >or
> > > >you need getter/setter for your Map
> > > >
roperties in the form.
> >
> >Niall
> >
> >- Original Message -
> >From: "Michael McGrady" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
> ><[EMAIL PROTECTED]>
> >Sent: Wednesday, A
)
> >
> >The problem with using the tags and not having your Map as a
property
> >of the ActionForm is that when the form is submitted, Struts is going to
try
> >to populate these properties in the form.
> >
> >Niall
> >
> >- Original Message -
> >
m is that when the form is submitted, Struts is going to
try
> >to populate these properties in the form.
> >
> >Niall
> >
> >- Original Message -
> >From: "Michael McGrady" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List&quo
t;Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 11:50 PM
Subject: Re: Non-Form Based Mapped Properties
> I created a simple class with the map and setValue(Object key, Object
> value) as well as getValue(Object key). Then tested
y" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 11:50 PM
Subject: Re: Non-Form Based Mapped Properties
> I created a simple class with the map and setValue(Object key, Object
> value)
rm is submitted, Struts is going to try
to populate these properties in the form.
Niall
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004
I created a simple class with the map and setValue(Object key, Object
value) as well as getValue(Object key). Then tested the class by putting
an instance of the class into session scope on a page, retrieving the
object on the same page, and trying to access the properties via the mapped
prope
Michael McGrady wrote:
Is there a way to use non-form based mapped and indexed properties with
bean and/or html tags? Apparently not?
Yes -- you can used both mapped and indexed properties from normal
JavaBeans. You can be more specific on the problem you are having?
Bill Siggelkow
--
Is there a way to use non-form based mapped and indexed properties with
bean and/or html tags? Apparently not?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
16 matches
Mail list logo