<a onclick='returnData(<bean:write name="xloc" property="script" />)'>
<bean:write name="xloc" property="locCode"/>
</a>
this <a> tag should output something like this
onclick = 'returnData("y-2342","234","home office", "10230 your street", "nj",
"union", "02932", "12fl")
but instead it does this
onclick = 'returnData("y-2342","234","home
office", "10230 your street", "nj", "union",
"02932", "12fl")
how can i prevent that. is there something to stop the translation of the \"
character
//get method for the bean defined as xloc
public String getScript() {
String qt = "\"";
String comma = ",";
StringBuffer buf = new StringBuffer();
buf.append(qt + locCode + qt + comma);
buf.append(qt + costCtr + qt + comma);
buf.append(qt + branch + qt + comma);
buf.append(qt + str3 + qt + comma);
buf.append(qt + st + qt + comma);
buf.append(qt + city + qt + comma);
buf.append(qt + zip + qt + comma);
buf.append(qt + flr + qt );
return buf.toString();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]