Is it possible to replace the value of a property in Struts2? I want to resolve a mimetype image, and it would be really useful to do something like:
<img src="<s:property value='%{mimetype.replace("/", ".")}'/>" ...
Can I do something on the fly lik开发者_JAVA技巧e this?
Thanks!
<img src="<s:property value='%{mimetype.replace("/", ".")}'/>
Yes it's possible ognl allows to use string mehthods directly
精彩评论