• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

could you do composition in a form?

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic