aspose file tools*
The moose likes Struts and the fly likes could you do composition in a form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "could you do composition in a form?" Watch "could you do composition in a form?" New topic
Author

could you do composition in a form?

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
is it possible to have a Form constructed as a composition?
I mean, instead of having this:

//assume all have getter and setter


and then have class C as:


I just wonder if it will be possible to do something like this in the jsp page:



thanks
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
yes, this is out it all works ;-)



is a user object with a adress object with a street field.

that was your question?

jan
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Originally posted by Jan Groth:


that was your question?

jan


my q:
it will be possible to do something like this in the jsp page:

and if yes, then how?
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
hm, then you have to be a bit more elaborative with your problem.

i understood that in your constellation a form C has a member of Class A which itself has a property a.

from what i figured out your "q" was: can i compose forms with rich-objects, and do i have direct access to those objects from within the jsp.

which i tried to answer... :-)

jan
[ October 25, 2006: Message edited by: Jan Groth ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: could you do composition in a form?
 
Similar Threads
Method Overridding
Relationship between 2 classes, simple scenario.
multiplt inheritence in java
plz tell me about my prolem?
Help On Subclassing