• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ActionForm access Via DynaActionForm?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I got 10 ActionForms and I have given all these ActionForms in DynaActionForm like this:-
<form-beans>
<form-bean name="dynaForm" type="org.apache.struts.action.DynaActionForm">
<form-property property="firstForm" type="com.pack.FirstForm">
<form-property property="secondForm" type="com.pack.SecondForm">
.
.
.
.
<form-property property="lastForm" type="com.pack.LastForm">

</form-beans>

Each actionform has a keyword property.
My problem: i need to access keyword property of a particular actionform thru dynaactionform in a JSP File. How to do tat? Please help me.

Below is the jsp file which am trying to access the keyword property of a particular actionform thru dynaactionform but it doesn't work.
JSP File
--------
<html:form action="\SomeAction.do name="dynaForm" type="org.apache.struts.action.DynaActionForm">
<html:text name="firstForm" property="keyword">
</html:form>
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<bean:write name="dynaForm" property="firstForm.keyword"/>

This is assuming that the form is called "dynaForm" and the com.pack.FirstForm has a method called getKeyword().
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic