The moose likes Struts and the fly likes Inheritance in Struts Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Inheritance in Struts Forms" Watch "Inheritance in Struts Forms" New topic

Inheritance in Struts Forms

Yakov Sobolev

Joined: Aug 10, 2004
Posts: 2
Can I use inherotance with Struts Forms? I have page information that is common to all my pages. I want to share it and be able to access it in all Forms.Can I access fields of the parent form in JSP page?
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30123

Yes, you can use inheritance in forms. Just make sure that the parent form extends ActionForm.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Inheritance in Struts Forms
Similar Threads
Variable for a form value?
Loading multiple forms in single jsp
Struts 1: Selective Validation of Form
Setting data to more than one form
Tiles Multiform submit