File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Inheritance in Struts Forms
It's not a secret anymore!