I am trying to use s:url
and the value contains a property. And it's not working.
<s:url value='/js/myJS-<s:property value="locale"/>.js'/>
Expected output:
....../contextPath/js/myJS-en_US.js
Nesting JSP tags like that is illegal.
Use normal JSP EL (assuming you're on a container supporting it):
<s:url value="/js/myJS-${locale}.js"/>
If you're not running a container that supports JSP EL (ew), use OGNL:
<s:url value="/js/myJS-%{locale}.js"/>
It's arguable this is the preferred mechanism since OGNL is S2's default EL.
When reporting something as "not working", you should also include what error(s) you get, for example, in this case, the JSP would never compile.