struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BHans...@powersystems.rockwell.com
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è                                                     
             <mario.nee@xmoon.                                             
             org>                                                       To 
                                       user@struts.apache.org              
             06/29/2005 08:13                                           cc 
             AM                                                            
                                                                   Subject 
                                       Architectural question              
             Please respond to                                             
               "Struts Users                                               
               Mailing List"                                               
             <user@struts.apac                                             
                  he.org>                                                  
                                                                           
                                                                           




Hello,
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.

ex:

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

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

--
Mario Nee'
Brescia Italy
mario.nee@xmoon.org
http://www.xmoon.org


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


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