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

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -