long someNumberVariable = 1234567;
<html:hidden property="newSomeNumberVariableObject" value ="<%=someNumberVariable%>"/>
if someNumberVariable is of type String then it works ok. if it is of type long then I get the following error
cannot resolve symbol
symbol : method setValue (long)
location: class org.apache.struts.taglib.html.HiddenTag
I would prefer to pass the variable in as a long type rather than a String as it saves me doing casting in some class files.