<%@page contentType="text/html;charset=utf-8"%>

<%@page contentType="text/html;charset=utf-8"%>

This code is error?

I put this code at the head of my jsp file,but error.

Test.jsp

<%@page contentType="text/html;charset=utf-8"%>

<HTML>

<HEAD>

<TITLE>HELLO WORLD</TITLE>

</HEAD>

<BODY>

<P>HELLO WORLD !</P>

</BODY>

</HTML>

ERROR:

Error: 500

Location: /test.jsp

Internal Servlet Error:

org.apache.jasper.compiler.ParseException: Cannot read file: \test.jsp

at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:223)

at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:146)

at org.apache.jasper.compiler.JspReader.(JspReader.java:262)

at org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java:268)

[898 byte] By [qinjiwy] at [2007-9-26 2:27:33]
# 1
Hi,your problem is that you saved test.jsp in different encoding than UTF-8 (f.e. 8859_1)Martin Fekete
mfekete at 2007-6-29 9:41:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...