RE: Struts usage

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Feb 05 2003 - 13:52:05 EST

  • Next message: Vincent Stoessel: "Re: Struts usage"

    Vincent,

    I second Eric on that. In your referral to the MVC paradigm, actions in
    Struts are "controllers". Cayenne DataContext is a controller itself, so
    it is invoked within actions to perform various things. DataObjects are
    "model". So "controller" works on "model" - very MVC :-)

    Andrus

    > Vincent,
    >
    > I'm not quite sure I understand you question. Things like fetching
    > artists, saving paintings, etc. seem like well defined actions to me.
    > Just curious where else would you suggest putting this code?
    >
    > FWIW, the tutorials are meant to be simple examples to get a cayenne
    > environment running with a couple of different presentation tier
    > frameworks (tapestry and struts). They where thrown together very
    > quickly and probably shouldn't be used as the basis for any design
    > decision you have to make for your projects.
    >
    > Cheers,
    > Eric
    >
    >> -----Original Message-----
    >> From: Vincent Stoessel [mailto:vincen..aymaca.com]
    >> Sent: Wednesday, February 05, 2003 12:50 PM
    >> To: cayenne-use..bjectstyle.org
    >> Subject: Struts usage
    >>
    >>
    >> Now that things are working, I am starting to go through the
    >> docs... Quck question. I noticed that in the jsp/struts example
    >> cayenne was used in the Action classes. I though the idea was just to
    >> have the action class simply access the model classes, and within the
    >> model classes would be where the cayenne/sql stuff would happen.
    >> Thanks.
    >> --
    >> Vincent Stoessel
    >> Linux Systems Developer
    >> vincent xaymaca.com
    >>
    >



    This archive was generated by hypermail 2.0.0 : Wed Feb 05 2003 - 13:52:06 EST