Vadim Petrenko,
You da man...
Many Thanks, will look into it. Right now Iam experimenting with 1.1b.
Regards
hemant
>
> ----- Original Message -----
> From: "Vadim Petrenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 02, 2002 8:25 AM
> Subject: Dynamic Bean Populate on Submit.
>
>
> > Hi! There is such a feature as 'mapped properties'.
> > So, you can use the following constructions:
> >
> > <html:text property="table(name)"/> // note "()"
> > // "name" - name of a field of "table" table
> > <html:text property="table(lastname)"/>
> > etc
> >
> > in the form you only need to define:
> >
> > Map table = new HashMap();
> > public Object getTable(String key)
> > {
> > return table.get(key);
> > }
> > public void setTable(String key, Object value)
> > {
> > table.put(key, value);
> > }
> >
> >
> > In brief, you don't need to define setters and getters
> > for every property as well as properties themselves.
> > Just reflect your database table to a map
> > (valueobject). And so on. Available as of 1.1.b1.
> >
> > Good luck.
> >
> >
> > ===
> >
> > Iam not aware of the enhancements in Struts 1.1b
> > completely but would like to know if
> > the following
> > functionality exists either in Struts 1.1b or 1.0.2.
> >
> > Lets say, we get a collection of ValueObjects and
> > populate the JSP by doing a
> > vo.getXXX methods.
> >
> > Since Struts depends heavily on Introspection, Is it
> > possible that vo.setXXX is
> > called when someone enters a value and submits?
> >
> > This would make life a lot easier.
> >
> > (Pardon me if this question was already answered, I
> > didnt get results for my
> > combination of search-words )
> >
> > comments please
> >
> > Regards
> > pathangi r
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://http://taxes.yahoo.com/
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>