You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sandeep Takhar <sa...@yahoo.com> on 2003/07/03 16:36:28 UTC

Re: JSTL- el - nested beans from a map used in a form?

I don't think you have defined your taglib at the top
of the jsp.  Your html-el should have changed when you
look at the source..

sandeep
--- Rick Reumann <r...@reumann.net> wrote:
> On Sat, 2003-06-28 at 13:51, Dan Tran wrote:
> > see this link
> >
>
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
> 
> Thanks Dan. I looked at the presentation above, but
> it's not helping me
> much. I probably do still need the indexed="true" to
> make the properties
> indexed, but I still don't see how this is going to
> get them populated
> in the correct bean and loaded back into the map?
> Adding indexed="true"
> doesn't seem to help.
> 
> > 
> > -Dan
> > ----- Original Message ----- 
> > From: "Rick Reumann" <r...@reumann.net>
> > To: "Struts Users Mailing List"
> <st...@jakarta.apache.org>
> > Sent: Saturday, June 28, 2003 9:35 AM
> > Subject: JSTL- el - nested beans from a map used
> in a form?
> > 
> > 
> > > Ok this has me stumped...
> > > 
> > > the down and dirty:
> > > 
> > > formBean has HashMap called fooMap
> > > 
> > > fooMap has keys that bring back beans of type
> BarBean
> > > 
> > > BarBean has properties someCode , someDescrip 
> > > 
> > > Now I want to iterate over this map and create
> the properties based on
> > > the properties in BarBean and be able to update
> this form which will
> > > then update the underlying BarBeans in the map.
> > > 
> > > (Ignore the part that I know that's a hassle
> about the reset method and
> > > making sure Map exist there).
> > > 
> > > 
> > > <c:forEach var="beanInMap"
> items="${formBean.fooMap}">
> > > 
> > >     someCode:     <html-el:text
> property="????????"/><br>
> > >     someDescrip:  <html-el:text
> property="????????"/><br>
> > >     <br>
> > >   
> > > </c:forEach>
> > > 
> > > 
> > > the text will display fine in the form with:
> > > 
> > > someCode: <html-el:text name=beanInMap"
> property="beanInMap.deptCode" />
> > > 
> > > but when the form submits all the bean property
> values are null ( in the
> > > reset if it matters for testing i'm just
> creating a few maps with empty
> > > BarBeans in the map).
> > > 
> > > I'm stumped.. any help much appreciated.
> > > 
> > > -- 
> > > Rick
> > >  
> > > 
> > > 
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> > 
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org