Struts <bean: write> tags
Avoiding a '&' character in strut tags. For example, we can mention.
<a href="./testaction.do?testmethod=bookResult&bookTitle=<bean:write name="booklist" property="title"/>" class="nLink"><bean:write name="booklist" property="title"/></a></small>
I iterate over the book list list (book list) and set the book titles one at a time. In this scenario, I need to avoid characters like '&' in the title property in order to follow the appropriate logic for this particular action.
Thank.
+5
2 answers
Maybe use an attribute filter?
<bean:write name="booklist" property="title" filter="true" />
Read more about <bean:write>. The documentation states:
true, , HTML, .
+7