Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Issue with double quote inside StringBuffer function
customize an option element in dropdown
selecting between two list boxes
onDblClick with Listbox values
Selecting option in second selectOneMenu not setting property value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013