You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alban Soupper <as...@eim.ch> on 2003/03/18 10:58:43 UTC
useAttribute and simple Types
Hi all,
Just a little question,
is it possible to use a <tiles:useAttribute .../>
with a value passed as boolean or int values ?
If yes, How :) ?
Thanks all,
Alban.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager at postmaster.eim.ch.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: useAttribute and simple Types
Posted by Cedric Dumoulin <ce...@apache.org>.
Hi,
The useAttribute tag doesn't perform any type conversion. When you
specify a classname, the tag will do something like:
Classtype varName = (Classtype)request.getAttribute( "attributeName" );
So, there is no way to specify primitive types.
Cedric
Alban Soupper wrote:
>Hi all,
>
>Just a little question,
>is it possible to use a <tiles:useAttribute .../>
>with a value passed as boolean or int values ?
>If yes, How :) ?
>
>Thanks all,
> Alban.
>
>
>**********************************************************************
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager at postmaster.eim.ch.
>**********************************************************************
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org