You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Binaghi Mauro <ma...@vtin.it> on 2003/03/27 13:10:35 UTC

Problem with casting resources aquired with tag

Hi!
I've some problem with an "int" property value, read from my ApplicationResources file...

This is my TAG in JSP page:
<bean:define id="readValue" type="int">
	<bean:message key="read.this.property.from.file"/>
</bean:define>

but when I try to use the variable "readValue", it seems to be a 'NULL' attribute...
So I've just tryied this one TAG:
<bean:define id="readValue" type="java.lang.Integer">
	<bean:message key="read.this.property.from.file"/>
</bean:define>

but when I use the method "readValue.intValue()" to convert this value to an "int" I receive the 
same error as before...

Anybody knows why?
Thx
Mauro

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org