You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by as as <sa...@yahoo.com> on 2004/03/09 22:59:13 UTC
Getting values from two different beans in the same form
Hi,
I have a question on using two beans in same form.....
I get the followig error:
javax.servlet.jsp.JspException: No getter method for property name of bean testModule
basically I am trying to access name and id of bean1 and version of bean2 to show in the same one form...
is this possible..
samples appreciated.
thanks much,
Sam
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: Getting values from two different beans in the same form
Posted by as as <sa...@yahoo.com>.
Thanks Daniel and Wendy!
I am trying this now and will post my results soon
~~~Sam.
Daniel Henrique Alves Lima <em...@yahoo.com.br> wrote:
I don't know if a got it...You can use nested beans inside your
ActionForm, like:
FirstBean -> has get/set name and get/set id
SecondBean -> has get/set version
MyActionForm -> has get/set firstBean and secondBean
You can do :
---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster.
Re: Getting values from two different beans in the same form
Posted by Daniel Henrique Alves Lima <em...@yahoo.com.br>.
I don't know if a got it...You can use nested beans inside your
ActionForm, like:
FirstBean -> has get/set name and get/set id
SecondBean -> has get/set version
MyActionForm -> has get/set firstBean and secondBean
You can do :
<html:form...>
<html:hidden property="firstBean.id"/>
<html:text property="secondBean.version/>
</html:form>
as as wrote:
>Hi,
>
>I have a question on using two beans in same form.....
>I get the followig error:
>javax.servlet.jsp.JspException: No getter method for property name of bean testModule
>basically I am trying to access name and id of bean1 and version of bean2 to show in the same one form...
>is this possible..
>samples appreciated.
>
>thanks much,
>Sam
>
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free web site building tool. Try it!
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org