Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
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

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
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

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
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

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
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

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
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

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
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) >

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
;-) 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 > > > >

Re: Non-Form Based Mapped Properties

2004-04-22 Thread Michael McGrady
roperties in the form. > > > >Niall > > > >- Original Message - > >From: "Michael McGrady" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; > ><[EMAIL PROTECTED]> > >Sent: Wednesday, A

Re: Non-Form Based Mapped Properties

2004-04-22 Thread Michael McGrady
) > > > >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 - > >

Re: Non-Form Based Mapped Properties

2004-04-22 Thread Martin Cooper
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

Re: Non-Form Based Mapped Properties

2004-04-22 Thread Michael McGrady
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

Re: Non-Form Based Mapped Properties

2004-04-21 Thread Michael McGrady
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)

Re: Non-Form Based Mapped Properties

2004-04-21 Thread Niall Pemberton
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

Re: Non-Form Based Mapped Properties

2004-04-21 Thread Michael McGrady
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

Re: Non-Form Based Mapped Properties

2004-04-21 Thread Bill Siggelkow
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 --

Non-Form Based Mapped Properties

2004-04-21 Thread Michael McGrady
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]