thankyou for your resposes. But where do I have to write this code? Is it in
the Action that prepares the jsp data before it gets launched?
I did not write the below and getting
javax.servlet.ServletException: No getter method for property custName of
bean org.apache.struts.taglib.html.BEAN
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
I am trying to use the dynaform for the first time and having challenges
with it.
Thanks.
From: Richard Yee <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: initialize dynaform
Date: Mon, 14 Nov 2005 13:10:15 -0800 (PST)
Fea,
To initialize a dynaform staticly, do as Niall
suggested. To dynamically pre-populate a dynaform, you
need code to do it as follows:
ModuleConfig moduleConfig =
RequestUtils.getModuleConfig(request,
getServlet().getServletContext());
FormBeanConfig formConfig =
moduleConfig.findFormBeanConfig("your_form_name");
DynaActionFormClass dynaClass =
DynaActionFormClass.createDynaActionFormClass(formConfig);
try {
myForm = (DynaActionForm)
dynaClass.newInstance();
}
catch (Exception e) {
logger.error(e);
}
Regards,
Richard
--- fea jabi <[EMAIL PROTECTED]> wrote:
> Is it possible to initialize dynaform?
>
> and how can this be done?
>
> Thanks.
>
>
_________________________________________________________________
> Express yourself instantly with MSN Messenger!
> Download today - it's FREE!
>
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]