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 == "&Ouml;" ||
firstletter == "&ouml;"
                                    ||  firstletter == "&Auml;" ||
firstletter == "&auml;"
                                    ||  firstletter == "&Uuml;" ||
firstletter == "&uuml;") {
                                    firstletter =
firstletter.substring(1,1).toUpperCase();
                                    sortable = firstletter + "e" +
keyword.substring(1);
                                }
                            </xsp:logic>

That's how I get it from my database. How can I escape this?
I also experience that cocoon has a problem to resolve &... entites in
general. I allways get the error "The entity * was referenced, but not
declared.

What is wrong?

Robert


---------------------------------------------------------------------
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]>

Reply via email to