You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2007/11/02 22:13:50 UTC

[jira] Resolved: (VELOCITY-569) Problem using the backslash ( \ ) character for "double quote"

     [ https://issues.apache.org/jira/browse/VELOCITY-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-569.
-----------------------------------

    Resolution: Invalid

This is a question for the user list, not a valid bug report.  Please ask the user list about your difficulties before filing bugs.

> Problem using the backslash ( \ ) character for "double quote"
> --------------------------------------------------------------
>
>                 Key: VELOCITY-569
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-569
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5
>         Environment: windows server 2003, tomcat 6 jdk1.6.0_03
>            Reporter: Allen He
>            Priority: Minor
>
> i want to set the value of variable to a string value include "double quote", the statement is as following:
> #set ($opt = " onchange=\"javascript:changeTaxType(this.value, 'sales2product_tax_type_$criterion')\"")
> I expect the string value is:
> onchange="javascript:changeTaxType(this.value, 'sales2product_tax_type_$criterion')"
> but the actual value is:
> onchange=\"javascript:changeTaxType(this.value, 'sales2product_tax_type_1')\"
> the backslash character is not removed from the string, it cause javascript to fail.
> Any suggestion on how to resolve this problem?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org