File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
I agree. Here's the link:
subject: Issue with double quote inside StringBuffer function
selecting between two list boxes
onDblClick with Listbox values
customize an option element in dropdown
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-2014