• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java called as a label for a radio button

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am trying to call a Java localiser function ( returning a string) and use this string as a label for a radio button.

The problem is the java function needs to use double " ", which the radio button does not like !

Here is a snippet of before code which works fine:
lbl = "<input readonly type=radio name=\"pv_lbl\" value=\"M\" checked>Mr";

Here is the above with "Mr" being replaced by the java function:
lbl = "<input readonly type=radio name=\"pv_lbl\" value=\"M\" checked><%=localiser.getText("FORMCOM_6")%>";

I have tried to escape the quotes, ie <%=localiser.getText(\"FORMCOM_6\")%>
But this does not work.

This Q is more of a javascript Q so apologies in advance,

Any Ideas?

"There is no spoon"
[ May 09, 2006: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Mister Anderson",

While there may be no spoon, there are a few rules that you need to adhere to here on the Ranch. One that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

bear
JavaRanch Sheriff
[ May 09, 2006: Message edited by: Bear Bibeault ]
 
crispy bacon. crispy tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic