I'm new to Struts 2.0 and I have to difficulties in finding good tutorials. I have many doubts on the best way to perform some actions. For example I have the following line inside one jsp page:
<s:property value="montlyDeltaMinutes"/> It accesses a property in the action of integer type. They are minutes but I wuold like to represent them as XX:YY where XX are the hours. Surely I can code the function "getMontlyDeltaMinutesAs_XX_YY_String" in the action but I would mix model and presentation. I think it is better to use a special tag for formatting but I have no idea on how to do it. The OGNL stack is somewhat misterious to me so I'm looking for a code snippet to display everything on it. I was quite surprised jsp variables such as <%! String aName = "Filippo";%> are not known to struts tags. Is there a way to use them, for example, inside an <s:if > tag ? Thanks for any help -- View this message in context: http://www.nabble.com/Best-practices-with-struts-2.0-tf3928006.html#a11139897 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]