• 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

1JSP File->2 Actions(2 ActionForms)

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well actually it would be

JSP File - > Action#1(ActionForm#1) -> Action#2(ActionForm#2)

I have been trying to figure this out for days with not much luck
I have a jsp file with one form in it that has a bunch of values. All those values are handled by 2 ActionForms. I am trying to submit this form and by redirecting from Action 1 to action 2 have those values populate ActionForm 1 and ActionForm 2. Unfortunately only first ActionForm being populated. If I first post to Action#1 than redirect to Action#2 than ActionForm#1 being populated. If I post to Action#2 than redirect to Action#1 than only ActionForm#2 being populated.

Any ideas? I am really stuck!

Thanks
Fedor
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the two forms have properties of the same name, just use BeanUtils.CopyProperties() to copy from one to the other. Struts is designed to populate only one form bean on submission, so I don't think you'll have much luck trying to get Struts to populate both of them.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic