java - How to include HTML in OGNL expression language in Struts 2 -
java - How to include HTML in OGNL expression language in Struts 2 -
i working on struts 2. doing projection
of collection in jsp page using ognl look language.
i have 1 list based collection in action
class, accessing on jsp page this:
<s:iterator value="lsemp.{name + '<b>---</b>' + address}"> //lsemp list based collection <s:property /><br> </s:iterator>
i want output this:
rajiv --- n.delhi
nakul --- mumbai
vinay --- banglore
//"---" beingness bold.
but <b></b>
tag in <s:iterator value="">
not getting accepted. , printing this:
rajiv <b>---</b> n.delhi nakul <b>---</b> bombay vinay <b>---</b> banglore
i want know there way enable html in ognl expression.
you can turn off escape html symbols when printing out
<s:property escapehtml="false"/><br>
java jsp struts2 ognl
Comments
Post a Comment