A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Issue with double quote inside StringBuffer function
Joined: Dec 07, 2009
May 24, 2010 01:00:11
sb.append("<option value=''>"+ com.emergys.Translator.getString(session.getId(),\"Select-One\")+"</option>");
i get syntax error for this code.But if i remove this backslash the listbox disappears.i want to use double quotes for "select-one". iam using this to display
in a different language.
Joined: Nov 08, 2001
May 24, 2010 06:06:27
You need to surround that with quotes too.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Issue with double quote inside StringBuffer function
selecting between two list boxes
customize an option element in dropdown
Selecting option in second selectOneMenu not setting property value
onDblClick with Listbox values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015