You could just create your own custom lazy form and add a getMap() method
public class MyLazyForm extends LazyValidatorActionForm {
public MyLazyForm() {
super();
}
public Map getMap() {
return ((LazyDynaBean)dynaBean).getMap();
}
}
I have also just added this to LazyValidatorForm on my web site - so all the
"lazy" ActionForms now have it.
http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean
Niall
----- Original Message -----
From: "Seaman, Sloan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 14, 2004 8:56 PM
Subject: RE: C:out and LazyValidatorActionForm
> That's what I thought.
>
> I even tried LazyValidatorActionMap but that didn't seem to do it
either...
>
> Ah well...
>
> --
> Sloan
>
>
> -----Original Message-----
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 3:53 PM
> To: Struts Users Mailing List
> Subject: Re: C:out and LazyValidatorActionForm
>
>
> It's not a DynaActionForm, so it doesn't inherit the "map" property, and
it
> doesn't appear to define one of its own:
>
> ActionForm
> ^
> __________|__________
> | |
> ValidatorForm DynaActionForm ("map" property defined here)
> ^
> |
> BeanValidatorForm
> ^
> |
> LazyValidatorForm
> ^
> |
> LazyValidatorActionForm
>
> Quoting "Seaman, Sloan" <[EMAIL PROTECTED]>:
>
> > I'm trying to use c:out to display the contents of a form bean that is
> > of
> > type:
> >
> > <form-bean name="form_DetailSheet"
> > type="org.apache.struts.validator.LazyValidatorActionForm"/>
> >
> > I set a form value like so:
> > DynaBean df = (DynaBean)_form;
> > df.set("accessionDate", new java.util.Date());
> >
> > I thought that doing a <c:out
> > value="form_DetailSheet.map.accessionDate"/>
> > would do it but I keep getting an error that it can't find .map
> >
> > How do I go about getting the value?
> >
> > Thanks!
> >
> > --
> > Sloan
>
> --
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]