aspose file tools*
The moose likes Struts and the fly likes Unable to populate a DynaBean property straight from the JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to populate a DynaBean property straight from the JSP" Watch "Unable to populate a DynaBean property straight from the JSP" New topic
Author

Unable to populate a DynaBean property straight from the JSP

Montek Singh Ahluwalia
Greenhorn

Joined: Nov 19, 2004
Posts: 1
Hi,

The scenario :


In my ActionForm,I have an instance of a class say "X". The class "X" contains a private DynaBean field. i.e

private DynaBean m_otherAttributes = null;

In the constructor I call a method say "prepareDynaBean()".

private void prepareOtherAttrs(){

DynaProperty[] RULE_BEAN_CRITERIA = new DynaProperty[] {new DynaProperty("securityCode")};

BasicDynaClass RULE_BEAN_CRITERIA_CLASS = new BasicDynaClass(null, null, RULE_BEAN_CRITERIA);

m_otherAttributes = new BasicDynaBean(RULE_BEAN_CRITERIA_CLASS);

}


In my ActionForm,I have an instance of class "X" say "m_xInstance".


The problem:


In my JSP, I have some text fields. I want to populate the values entered by the user in UI directly into the properties of DynaBean object.

But I m not successful.

If u think u can help then please reply.

Thanking You
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to populate a DynaBean property straight from the JSP