If Velocity is being use, the struts-default.vm supplies some VelocityMacros that might be useful.
struts-default.vm