• 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

Is it possible 2 add multiple formbeans in struts XML file

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Q1)Hi is it possible to add multiple form beans in a struts xml file or there can only be one form-beans with multiple form-bean?

Q2) Also is it possible to have multiple action paths for one form bean.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jo sim, "2" is not a word, it is a numeral. Please be sure to use real words such as "to" when posting to the forums.

Please read this for more information.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can define as many form beans as you want in a struts-config.xml file. However, a single Action can only be associated with one form bean.

On the other hand, any number of Actions can use the same form bean.
 
jo sim
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(((You can define as many form beans as you want in a struts-config.xml file)))

Do you mean to say that one can have as many form-bean inside of form-beans? or one can have alot of form-beans with form-bean in it?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per the Struts Config dtd, you can have only one form-beans at the most. This form-beans can then have multiple form-bean
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to clarify what Jaikiran said: In the struts-config.xml file you can have only one <form-beans></form-beans> stanza, and inside it, you can have any number of <form-bean></form-bean> stanzas.
 
reply
    Bookmark Topic Watch Topic
  • New Topic