Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 85443 invoked from network); 3 Jun 2000 23:06:12 -0000 Received: from adsl-63-193-215-194.dsl.snfc21.pacbell.net (HELO ambient.collab.net) (root@63.193.215.194) by locus.apache.org with SMTP; 3 Jun 2000 23:06:12 -0000 Received: from localhost (ed@localhost) by ambient.collab.net (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id QAA02284; Sat, 3 Jun 2000 16:40:20 -0700 X-Authentication-Warning: ambient.collab.net: ed owned process doing -bs Date: Sat, 3 Jun 2000 16:40:20 -0700 (PDT) From: Ed Korthof X-Sender: ed@ambient.collab.net To: tomcat-dev@jakarta.apache.org cc: Ken Flurchick , Armen Ezekielian , haupt@erc.msstate.edu, Jan Labanowski Subject: Re: Tomcat bug In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N The good (and bad) thing about JSPs is that they allow you to use the full power of the Java language. That also means that when you write Java code, you're restricted to valid Java statements. This is not a valid Java statement: char c = '\u000d'; because the '\u000d' is not a valid character constant. I'm not entirely sure what it is you wanted to express, but whatever it was, this isn't a valid way to do it. Try compiling a .java file with this, and you'll see what I mean. The error shown below comes from a java compiler (it looks like javac's description, though a different compiler might produce the same text), not tomcat ... this is a bug either in your code (most likely) or in the compiler (less likely, since both javac and jikes dislike this statement). good luck -- Ed On Sat, 3 Jun 2000, Jan Labanowski wrote: > I am still using 3.1b1 Apache 1.3.12 > There is an annoying bug: > > the JSP page: ( you cannot get much shorter than that) > > <%@ page language="java" %> > <% char ch = '\u000e'; %> > > Hello World > > > Prints > Hello World > in the browser. If I change e -> d in char constant, i.e.: > > <%@ page language="java" %> > <% char ch = '\u000d'; %> > > Hello World > > > I get: > > Error: 500 > > Location: /SciPortal/CCM/CT/GAUSSIAN/test.jsp > > Internal Servlet Error: > > org.apache.jasper.JasperException: Unable to compile class for JSPwork/localhost_8080%2FSciPortal/_0002fCCM_0002fCT_0002fGAUSSIAN_0002ftest_0002ejsptest_jsp_3.java:61: Invalid character constant. > char ch = '\u000d'; > ^