You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jason Deffenbaugh <jd...@techtarget.com> on 2008/08/22 20:41:31 UTC
type conversion per method
I'm running struts 2.0.11 trying to do a custom type conversion.
The conversion is working for the action that calls the execute() method
in the action class but it does not work for an action that is declared
using the method="methodName" parameter in struts.xml so when
methodName() runs I get an input result because it doesn't convert.
I have my properties file to wire up the conversion named as:
ActionClass-conversion.properties
The property file contains:
parameter=com.type.conversion.ClassName
I also tried putting this in xwork-conversion.properties without
success.
Has anyone had success using type conversion for actions that don't run
execute()?
-Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: type conversion per method
Posted by Jason Deffenbaugh <jd...@techtarget.com>.
Figured it out. Had a bad URL going. Thanks!
On Fri, 2008-08-22 at 14:41 -0400, Jason Deffenbaugh wrote:
> I'm running struts 2.0.11 trying to do a custom type conversion.
>
> The conversion is working for the action that calls the execute() method
> in the action class but it does not work for an action that is declared
> using the method="methodName" parameter in struts.xml so when
> methodName() runs I get an input result because it doesn't convert.
>
> I have my properties file to wire up the conversion named as:
> ActionClass-conversion.properties
>
> The property file contains:
> parameter=com.type.conversion.ClassName
>
> I also tried putting this in xwork-conversion.properties without
> success.
>
> Has anyone had success using type conversion for actions that don't run
> execute()?
>
> -Jason
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org