Hi Alan,
you could place the value bean in the form with a setValueObject() method on the form.


In your JSP you could use indexed tags to get to the bean, e.g. for property getTitle()

<input id="mybean[0].title">

Adam

Weissman, Alan wrote:
Ok so I'm a little new to Struts but not J2EE and I've been noticing that my
Value Objects that come out of EJB's in my data layer are the exact same
objects as the ActionForms that are used by Struts....and I'm sure I'm not
the first to notice this.

So here's my question: How can I make one class that can serve as both an
ActionForm and a ValueObject?


The problems with solutions that I've brainstormed are this:

1) I can't make my Value Objects extend ActionForm for obvious reasons.
2) I would rather not use an interface to get around this issue because then
I have two classes to maintain again.

Thanks for any advice!

Alan


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to