You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Travis D. Falls" <tr...@sbcglobal.net> on 2003/11/19 02:30:00 UTC

OO Struts

I am designing my first struts application, but I have been a java
developer for about 5 years.  I am actually refactoring a survey app. I
wrote.  The way struts was explained to me was my ActionForms were like
my Transfer objects and my actions were just that, the action that was
requested... storing in the database.  With that said, how would I
handle building a survey object (surveyForm) that had N number of
question objects which in turn had N number of answer objects?  I am
really confused.  Thanks for any insight.

travis



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: OO Struts

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
On 11/19/2003 02:30 AM Travis D. Falls wrote:
> I am designing my first struts application, but I have been a java
> developer for about 5 years.  I am actually refactoring a survey app. I
> wrote.  The way struts was explained to me was my ActionForms were like
> my Transfer objects and my actions were just that, the action that was
> requested... storing in the database.  With that said, how would I
> handle building a survey object (surveyForm) that had N number of
> question objects which in turn had N number of answer objects?  I am
> really confused.  Thanks for any insight.

Hi Travis,
check out nested beans. There are some good demos linked via the struts 
website.

Adam
-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org