[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Testsuite problem - any help please
This occurs when I try to run main.jsp from my public_html directory - I
think it is not properly resolving the alias - this doesn't fail when I run
it from the web server document root directory.
This is problem when including files as well ...
please help -
John
-=-=-=
environment:
context.getServerInfo() = ApacheJServ/1.0/ GNUJSP 1.0 wrapper
me = http://qasrv.qa/~jtashiro/gnujsp/testsuite/main.jsp
me as url: = http://qasrv.qa/~jtashiro/gnujsp/testsuite/main.jsp
ServerPort = 80
PathInfo = '/~jtashiro/gnujsp/testsuite/main.jsp'
ServletPath = '/servlets/gnujsp'
-=-=--=
Test 4 - 2.3 Comments 3 - HTML Comment 3:
(http://qasrv.qa/~jtashiro/gnujsp/testsuite/t2_3-3-comments.jsp)
---expected ---
[Value:value1]
---output was---
<html>
<body>
<h1>2.3 Comments</h1>
<!-- This comment should be parseable i think! [Value:<PRE>Exception:
javax.servlet.ServletException: java.lang.RuntimeException: GNUJSP: internal
error, could not find resourceImpl
javax.servlet.ServletException: java.lang.RuntimeException: GNUJSP:
internal error, could not find resourceImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.servlet.ServletException.<init>(Compiled Code)
-----Original Message-----
From: Kazu Nambo [mailto:knambo@softlab.co.jp]
Sent: Thursday, November 11, 1999 6:34 AM
To: gnujsp@gjt.org
Subject: How to deliver localized contents
Hello, all.
I have a question about contentType attribute of page directive.
As long as reading 'JavaServer Page Specification'(from SUN),
it is enough to add 'contentType' attribute of page directive
as follows for delivering localized contents.
<%@ page contentType="text/html;charset=iso-2022-jp" %>
But if I try this along with a simple HTML document, the
contents is not delivered properly.
The following is a sample case.
<%@ page contentType="text/html;charset=iso-2022-jp" %>
<html>
<head>
<title>Kanji Test</title>
</head>
<body>
?f?[?^?X?g?A
</body>
</html>
The line between <body> and </body> is our localized contents.
If I try this JSP file, a parsing error happens.
Error compiling source file /nttqua/kanji2.jsp:
/nttqua/kanji2.jsp:10: unexpected EOF while parsing attributes
Sometimes it works. It depends on the contents.
And if I use other charset(Shift_JIS), the result is always
illegal as follows.
?f?[?^?X?g?A
Does anyone knows how to avoid this problem?
Thanks in advance.
Kazu Nambo