<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>
    </p>
    <div class="moz-text-html" lang="x-unicode">
      <p>I have a jsp which reads an URL from a database and oututs it
        to a page</p>
      <p><br>
      </p>
      <p>like <a href="/dir/Übersicht.htm">Übersicht</a></p>
      <p>(as a side note: the page resides in opencms, so it's relative
        to the /index.html (which is the main page)<br>
      </p>
      <p>When I click on that link in a browser, the URL cannot be found</p>
      <p>All URLs that do not contain an Umlaut (ä,ö,ü,Ä,Ö,Ü,ß) are
        resolved fine.</p>
      <p>This is the piece of code:</p>
      <p><br>
      </p>
      <p><font size="-2" face="Courier New, Courier, monospace">   rs =
          st.executeQuery("SELECT url,urlname,kommentar,ok,ID from
          urls");<br>
                         <br>
                        while(rs.next()) { <br>
                        <br>
                          if(rs.getString(4).equals("1"))<br>
                              ok="ok";<br>
                          else ok="notok";<br>
                           // String url = URLEncoder.encode(<br>
                             //  rs.getString(1),<br>
                               // "ISO-8859-1"<br>
                            // );<br>
                            String url=rs.getString(1);<br>
                          out.println("\n" +  "<form
          action=\"#\"><span class=\""+ok+"\"><a href=\""<br>
                          + url + "\" target=\"right\" >"<br>
                          + rs.getString(2) + "</a><span
          class=\"rt\"><textarea  name=\"kommentar\"
          style=\"height:15px;width:250px;\" rows=\"1\" cols=\"40\"
          >"<br>
                          + rs.getString(3)+"</textarea><input
          type=\"hidden\" name=\"ID\" value=\""<br>
                          + rs.getString(5)+"\"/><button
          type=\"submit\" name=\"ok\" value=\"1\"
          >ok</button><button type=\"submit\" name=\"ok\"
value=\"0\">n.ok.</button></span></span></form>");<br>
                        }  <br>
                         if(rs!=null)rs.close();<br>
                         if(st!=null)st.close();<br>
                         if(st1!=null)st1.close();<br>
                         if(c!=null) c.close();<br>
                     </font><br>
      </p>
      <p>The commented out stuff (//) does not work.</p>
      <p>When I hover over the link in the browser the url (not the
        encoded on) looks like:</p>
      <p>cms.mysite.org/dir/Übersicht.html</p>
      <p>for example. That is, the hostname (without <a
          class="moz-txt-link-freetext" href="http://">http://</a>) is
        in the href field of the anchor element.</p>
      <p>Any clues?</p>
      <p>--</p>
      <p>Christoph</p>
      <p><br>
      </p>
    </div>
  </body>
</html>