> -----Original Message----- > From: Robert Sösemann [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 16, 2002 10:01 AM > To: [EMAIL PROTECTED] > Subject: correct use of umlauts > > > Hello, who can help, > > > I have the following code fragment in my xsp page, but I > always get an error > because of the use of german umlaut entities like Ö. > > <xsp:logic> > String keyword = <esql:get-string > column="k.word"/>; > String firstletter = > keyword.substring(0,6); > String sortable = keyword; > > > if( firstletter == "Ö" || > firstletter == "ö"
Probably you want firstletter.equals( "Ö" ) NOT == [EMAIL PROTECTED] Author of Soap Programming with Java - Sybex; ISBN: 0782129285 Coauthor of Cocoon 2 Programming - Sybex; ISBN: 0782141315 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>