I'm trying to use the following to set a variable in my gsp file, but am getting an error:
Code:
<g:set var="createReqInd" value="<span class='required-indicator'>*</span>"/>
Error:
Attribute value quote wasn't closed (var="createReqInd" value="<span class='required-indicator').
Can someone please tell me how to set the variable to this string?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/e0d9e0fe-e5d1-4586-94c2-e8ccea89d761%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think you can do something like this<g:set var="createReqInd" value="${'<span class=\'required-indicator\'>*</span>'}"/>
On 18 February 2015 at 14:44, Brian Lawson <brianle...@gmail.com> wrote:
I'm trying to use the following to set a variable in my gsp file, but am getting an error:
Code:
<g:set var="createReqInd" value="<span class='required-indicator'>*</span>"/>
Error:
Attribute value quote wasn't closed (var="createReqInd" value="<span class='required-indicator').
Can someone please tell me how to set the variable to this string?
Thanks
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/4b0a2f95-de5e-488e-8fe9-945104a7364c%40googlegroups.com.