This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to populate a DynaBean property straight from the JSP

Montek Singh Ahluwalia
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic