[Actionframework-users] Type Handlers...
Status: Inactive
Brought to you by:
ptoman
|
From: Mandip S. S. <ma...@su...> - 2002-06-28 15:12:17
|
Hi Petr
Thanks for the quick response on the regex problem (the trailing slash
solution worked a treat :-) ).
I am currently using type handlers and have an issue which I need
suggestions on. I have two type handlers which have the same
source-type and target-type i.e.
<type-handlers>
<type-handler target-type="java.util.ArrayList"
class="org.visres.ivr.security.HandlerA"/>
<type-handler target-type="java.util.ArrayList"
class="org.visres.ivr.security.HandlerB"/>
</type-handlers>
The problem is how do I make different methods in different actions
specifiy which type-handler to use when the method parameter type is the
same (in this case the paramter type being a java.util.ArrayList) i.e.
<action name="/actionA" method="methodA(java.util.ArrayList listA)">
<input-variable name="listA" value="roleUids[]"/>
<on-return value="void" show-template="xxxx"/>
</action>
Needs to use HandlerA and
<action name="/actionB" method="methodB(java.util.ArrayList listB)">
<input-variable name="listB" value="roleUids[]"/>
<on-return value="void" show-template="xxxx"/>
</action>
needs to use HandlerB.
At the moment I can have however many type handlers with the same
source-type and target-type but all methods that have a
java.util.ArrayList as a parameter will all use the same type handler.
Any suggestions would be much appreciated.
Regards
Mandip
P.S. again due to mail server problems please could you Cc: any replys
to man...@ya...
|