Hello

I'd been writing servlets for Jserv engine on Apache
until I found
Tomcat.  Now I changed my sevlets so that they call
JSP pages whenever
there's more HTML than java code in them.  I do that
using something
like this:
resp.sendRedirect("/jm/login_err.jsp?error_num=1");
or
getServletConfig().getServletContext().
                getRequestDispatcher("/success.jsp?hint=" +
arr_dep_str).
                forward(req,resp);

However, I encountered a big problem; it seems that
jsp pages can't contain any other characters than
ascii.  I must use Czech caracters in my pages.  I
tried everything but the page is always garbled or it
causes an internal error - the engine can't compile it
because of the characters.  I've got this directive in
my jsp's:

<%@ page contentType="text/html; charset=ISO-8859-2"
%>

I tried to use windows-1250 charset instead (it is
also the character encoding returned by
System.getProperty("file.encoding") and that I've
never had problems compiling a source code in) but to
no avail. I also found that ISO-8859-1 doesn't work
either; when the page contained some French characters
the engine couldn't compile it.

It's crazy if I can't use any other characters than
ascii in my pages.

If anybody knows how to make that work or knows any
other engine for jsp's which can compile pages
containing national character sets help me please; I
have to show how far I got in my project Monday.  If
you happened to send me an answer, CC it to
[EMAIL PROTECTED] too, please.

Thank you very much in advance.
Jakub

P.S.
I've just tried the latest jswdk frm Sun; it works
well with pages in ISO-8859-1 and win-1250, however
the problem remains wnen I use ISO-8859-2.  I was also
looking for help in some mailing lists' archives and
I've found a lot of posts from people who have the
same problem there but no solution.
___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to