You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Van Riper, Mike" <mv...@verisign.com> on 2003/03/13 04:36:59 UTC

RE: [struts-atlanta]

I am envious every time I see one of these postings for the Struts user
group in Atlanta. Anyone interested in helping me start a Struts user group
in silicon valley? If so, please contact me. If there is enough interest, I
will setup a mailing list for the group and we can start planning an initial
user group meeting.

Thanks,
  Mike Van Riper
  mailto:mvanriper@verisign.com

P.S. I'm a Struts developer at VeriSign in Mountain View. I work on
enterprise webapps for VeriSign's security services.

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


Re: nested form bean

Posted by Peter Gershkovich <pe...@yale.edu>.
please ignore. it was just an error in my code.

Peter Gershkovich wrote:
> I have seen few messages regarding this issue in archive but would 
> appreciate a response from someone who really have it working.
> 
> It seems very convenient to populate an html form for editing just by 
> passing a bean from the business layer. In our case one of the 
> properties of that bean is another bean - here is  the jsp fragment:
> ----------------------------------------------------------------------
>   <nested:select property="prop.objectID" name="boo" >
>    <nested:options collection = "List"  property = "objectID" 
> labelProperty = "name"/>
>       </nested:select>
> ----------------------------------------------------------------------
> That works fine and the form gets pre-populated but on submit I would 
> like the Form bean to be updated and it is not happening.
> I am getting an error IllegalArgumentException: No bean specified
> 
> Should we expect on submit that an associated form bean will be updated? 
> (not boo but the one specified in struts.config).
> 
> And if it is the case how the form bean should be written. In other 
> words should it have a bean object for prop with setters and getters 
> like shown below or I am completely wrong.
> 
> ---------in the form bean-------------
> private LookupBean prop = new LookupBean();
> public LookupBean getProp ......
> ----------------------------------
> 
> -------in the LookupBean------------
> private String objectID;
> public String getObjectID ...
> public void setObjectID ....
> ------------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


nested form bean

Posted by Peter Gershkovich <pe...@yale.edu>.
I have seen few messages regarding this issue in archive but would 
appreciate a response from someone who really have it working.

It seems very convenient to populate an html form for editing just by 
passing a bean from the business layer. In our case one of the 
properties of that bean is another bean - here is  the jsp fragment:
----------------------------------------------------------------------
   <nested:select property="prop.objectID" name="boo" >
    <nested:options collection = "List"  property = "objectID" 
labelProperty = "name"/>
       </nested:select>
----------------------------------------------------------------------
That works fine and the form gets pre-populated but on submit I would 
like the Form bean to be updated and it is not happening.
I am getting an error IllegalArgumentException: No bean specified

Should we expect on submit that an associated form bean will be updated? 
(not boo but the one specified in struts.config).

And if it is the case how the form bean should be written. In other 
words should it have a bean object for prop with setters and getters 
like shown below or I am completely wrong.

---------in the form bean-------------
private LookupBean prop = new LookupBean();
public LookupBean getProp ......
----------------------------------

-------in the LookupBean------------
private String objectID;
public String getObjectID ...
public void setObjectID ....
------------------------------








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