A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Unable to populate a DynaBean property straight from the JSP
Montek Singh Ahluwalia
Greenhorn
Joined: Nov 19, 2004
Posts: 1
posted
Nov 19, 2004 04:08:00
0
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://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Unable to populate a DynaBean property straight from the JSP
Similar Threads
Populating the FormBean/Business Tier Bean - doubt on Introspection/Reflection
get a bean to populate itself
performance issue with large collections of data
Strange Null Pointer Exception in ActionForm
Issue in Struts Dropdown(Need Help Ranchers)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter