You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <ma...@yahoo.com> on 2001/09/25 16:52:18 UTC

Re: Nested properties and HTML custom tags

We are doing this successfully - we just put getters/setters in the Form for
the VO.

Matt

--- Peter Pilgrim <pe...@db.com> wrote:
> 
> Can you use nested properties with the Struts HTML custom tags
> such that they populate a valueobject nested inside a ActionForm type.
> 
> <html:form name="/LoginAction.do" >
> 
> <table>
> <tr>
>     <td>Username<td>
>     <td>
> 
>      <html:text  name="ejb.valueobject.username"  maxlength="16" />
> 
>     </td>
> </tr>
>     <td>Password<td>
>     <td>
> 
>      <html:password  name="ejb.valueobject.password"  maxlength="16" />
> 
>     </td>
> </tr>
> </table>
> 
> </form>
> 
> I would like my action form populated like so:
> 
>      getEjb().getValueObject().setPassword( "password-entered" );
> 
> Does this work ?
> --
> Peter Pilgrim          |  |        ++44 (0)207-545-9923
>             .... \  \  ___   /  / ... .
>             -   ----  ( * )  ---   --
> _____________________________Cafe_Savannah,_San Antonio,Ibiza__
> 
> 
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error) please
> notify the sender immediately and destroy this e-mail. Any unauthorized
> copying, disclosure or distribution of the material in this e-mail is
> strictly forbidden.
> 
> 


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com