You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Koen Jans <ko...@student.kuleuven.be> on 2005/10/26 09:16:52 UTC
nested tags problem
Hi,
i am trying to access nested properties on a jsp page like this:
<html:form action="/actionx">
<nested:nest property="foo" >
<nested:text property="bar" />
</nested:nest>
</html:form>
On my ActionFormY associated with this jsp, of course i have an
instance Foo foo (which can be set and gotten by getFoo(), setFoo(..) )
and which has correct Foo.getBar() and Foo.setBar(..) methods.
I prepopulate this form from an action like:
ActionFormY actionForm = newActionFormY();
Foo foo = new Foo();
foo.setBar("bar");
actionForm.setFoo(foo);
request.setAttribute("actionFormY", foo);
So far so good, when i access the page, the correct prepopulated
values are displayed. However, when i submit the page, i keep getting
this error message: "javax.servlet.ServletException:
BeanUtils.populate", "java.lang.IllegalArgumentException: No bean
specified". Yes, my names and formbean-names in struts-config.xml
are correct :)
Any hints? thanks for your time.
Koen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: nested tags problem
Posted by Lucas Bern <lu...@yahoo.com.ar>.
Hi
may be the scope request is not enough?....
why are you instantiating the ActionForm?, it is supposed to have struts doing it for you, any special reason?
Lucas
Koen Jans <ko...@student.kuleuven.be> escribió:
Hi,
i am trying to access nested properties on a jsp page like this:
On my ActionFormY associated with this jsp, of course i have an
instance Foo foo (which can be set and gotten by getFoo(), setFoo(..) )
and which has correct Foo.getBar() and Foo.setBar(..) methods.
I prepopulate this form from an action like:
ActionFormY actionForm = newActionFormY();
Foo foo = new Foo();
foo.setBar("bar");
actionForm.setFoo(foo);
request.setAttribute("actionFormY", foo);
So far so good, when i access the page, the correct prepopulated
values are displayed. However, when i submit the page, i keep getting
this error message: "javax.servlet.ServletException:
BeanUtils.populate", "java.lang.IllegalArgumentException: No bean
specified". Yes, my names and formbean-names in struts-config.xml
are correct :)
Any hints? thanks for your time.
Koen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
Abrí tu cuenta aquí