Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Struts
could you do composition in a form?
Peter Primrose
Ranch Hand
Posts: 755
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
is it possible to have a Form constructed as a composition?
I mean, instead of having this:
//assume all have getter and setter
Class A double a; double b; Class B int x; int y;
and then have class C as:
class C extends ActionForm A a; B b;
I just wonder if it will be possible to do something like this in the
jsp
page:
<html:select property="A.a">
thanks
Jan Groth
Ranch Hand
Posts: 456
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes, this is out it all works ;-)
<html : text property="user.adress.street" />
is a user object with a adress object with a street field.
that was your question?
jan
Peter Primrose
Ranch Hand
Posts: 755
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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:
<html:select property="A.a">
and if yes, then how?
Jan Groth
Ranch Hand
Posts: 456
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 ]
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Method Overridding
Relationship between 2 classes, simple scenario.
plz tell me about my prolem?
Help On Subclassing
multiplt inheritence in java
More...