In practice, most applications are composed of a small number of
workflows that repeat within the application. When configuration
elements in different namespaces serve the same role, use the same
identifier for each element. If each namespace includes a "Menu" or  a
"Help" action, use those same names with each namespace.

<package name="receivables" namespace="/receivables">
   <action name="Menu" class="receivables.Menu" >
     <result>/receivables/Menu.jsp</result>
  </action>
 <!-- ... -->
</package>
<package name="payables" namespace="/payables">
   <action name="Menu" class="payables.Menu" >
      <result>/payables/Menu.jsp</result>
   </action>
 <!-- ... -->
</package>

Since the namespace feature avoids collisions between element names,
we can increase cohesion within the application by using a consistent
naming pattern.

HTH, Ted.
<http://husted.com/ted/blog/>

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

Reply via email to