I\'m trying to set a hidden input value using the struts2 framework. The input value is an unchanging value, so I\'d like to set it via a static reference rather than worryi
You cannot nest tags like that. And to reference inner class you need to use $ sign.
$
<s:hidden name="username_type" value="%{@com.packagename.models.UsernameModel$UsernameTypes@ALIAS}" />
IMO it is better to use that kind of static variables directly in class rather than send them from JSP.