Re: [Actionframework-users] Type Handlers...
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <Pet...@pi...> - 2002-07-01 17:46:16
|
> Thanks for the quick response on the regex problem (the trailing > slash solution worked a treat :-) ). Fine. > 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. > > 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. You can override beforeConversion() method in servlet, put actionName to Context and in the type handler convert according to the action. I've been thinking of an enhancement of ActionConfig, that would allow more granularity for selecting type handlers - like: <action name="/actionA" method="methodA(java.util.ArrayList listA)"> <input-variable name="listA" value="roleUids[]"> <type-handler class="org.visres.ivr.security.HandlerA"/> </input-variable> <on-return value="void" show-template="xxxx"/> </action> I hope to find some time for AS this week. -Petr -- >>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<< |