struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Architectural question
Date Wed, 29 Jun 2005 12:25:52 GMT

So long as the Action class is performing a truly generic function  then I
see no problem with this.  Additionally, the name of the Action should
reflect the function that is being performed.  For example, if the action
is forwarding a bean embedded in the form to a web service, the Action
should be named something like PostWebServiceAction.  However, if the
action has logic built into it to determine which jsp is feeding the action
and how to Interpret the data, this should be broken out.

             Mario Neè                                                     
             org>                                                       To 
             06/29/2005 08:13                                           cc 
                                       Architectural question              
             Please respond to                                             
               "Struts Users                                               
               Mailing List"                                               

Does anybody knows if there is some problem in using single Action class
to serve more Service ?
XMoon load service automatically from xml but the Action class is the same.


<action path="/console" type="org.xmoon.GenericStrutsAction">
        <forward name="default" path="/pages/console.jsp"/>

<action path="/test" type="org.xmoon.GenericStrutsAction">
        <forward name="default" path="/pages/test.jsp"/>

Mario Nee'
Brescia Italy

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message