Hi David,
try:
<s:checkbox name="..." value="..."> I agree to < a href="...">terms of
service</ a> </s:checkbox>
I don't remeber if it will work in struts2
but if not You can always use theme="simple" and no label at all in
s:checkbox and add text after checkbox in any form You like.

Best greetings,
Paweł Wielgus.


2010/6/24 David Lu <str...@lululand.com>:
>
> Hi All,
>
> As part of a registration form, I want to have a checkbox that
> lets the user agree to some terms:
>
> ( ) I agree to the _Terms of Service_
>
> Where _Terms of Service_ should be a link to another page
> with some legal mumbo jumbo.
>
> The obvious code is:
>
> <s:checkbox label="I agree to the <a href='legal.html'>Terms of Service</a>"
> name="agreeToTerms"/>
>
> Unfortunately the HTML for <a> is encoded and rendered as code,
> rather than as HTML:
>
> ( ) I agree to the <a href='legal.html'>Terms of Service</a>
>
> Viewing the source shows that < and > have been changed to
> &lt; and &gt;, respectively.
>
> Is there a way to tell struts not to use the label text as-is?
>
>                  - David -
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to