struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm jee <tm_...@yahoo.co.uk>
Subject [s2] [Idea] CompositeActionMapper
Date Wed, 01 Nov 2006 05:36:38 GMT
Hi guys, 

What do you guys think about having a CompositeActionMapper that allows one of the many ActionMapper
it has to being used.

        1 +---------------------+
 +--------| ActionMapper |
  |        +---------------------+
  |                ^
  |                |
  |               +--------------------------------------------------
  |                |                                                 |
  |   +----------+-------------------------+            +-------+-------------------------+
  ----| CompositeActionMapper  |             |    DefaultActionMapper  |
 M  +-------------------------------------+            +----------------------------------+



The configuration could be done in struts.properties eg.

struts.mapper.class=foo.bar.CompositeActionMapper
struts.mapper.composite.1=foo.bar.MyActionMapper
struts.mapper.composite.2=foo.bar.DefaultActionMapper

With this we got 2 action mapper which get called in turns to see if they are able to produce
an ActionMappings.

Thoughts? good, bad, feasible?

rgds



 		
---------------------------------
 All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." -
PC Magazine
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message