Forms struts 2.0允许在s:checkbox的标签中使用HTML

Forms struts 2.0允许在s:checkbox的标签中使用HTML,forms,jsp,struts2,Forms,Jsp,Struts2,我有一个复选框用于同意contenst的条款和条件,用户希望在标签中链接这些条款。我尝试过这样做: <s:checkbox name="iagree" fieldValue="true" label="By entering, I acknowledge that I have read, understand, and agree to the <a href='/rules.pdf'>Official Rules</a>, <a href='/about

我有一个复选框用于同意contenst的条款和条件,用户希望在标签中链接这些条款。我尝试过这样做:

<s:checkbox name="iagree" fieldValue="true" label="By entering, I acknowledge that I have read, understand, and agree to the 
<a href='/rules.pdf'>Official Rules</a>, <a href='/about-us/terms-of-use/'>Terms of Use</a>, and <a href='/about-us/privacy-policy/'>Privacy Policy</a>."/>

不幸的是,JSP正在转义我的标记,因此您实际上看到了括号、标记等。是否可以添加一个属性来确保HTML实际用作HTML

奇怪的是,我有一个struts广播组,它可以很好地进行标记。

只需使用HTML
标记并放置复选框以及其中的文本和链接。并为
标记使用
simple
主题

<label>
  <s:checkbox name="iagree" fieldValue="true" theme="simple"/>
  By entering, I acknowledge that I have read, understand, and agree to the 
  <a href='/rules.pdf'>Official Rules</a>, 
  <a href='/about-us/terms-of-use/'>Terms of Use</a>, 
  and <a href='/about-us/privacy-policy/'>Privacy Policy</a>.
</label>

通过进入,我承认我已阅读、理解并同意
, 
, 
和。