tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juhani <juh...@yahoo.com>
Subject Re: JDK 1.5 beta new features
Date Thu, 29 Apr 2004 17:15:30 GMT
Hello! Test JSP is created after an example from page
http://java.sun.com/developer/technicalArticles/releases/j2se15/
(Autoboxing and Auto-unboxing of Primitive Types).

=================================================
JSP-page:

<%@ page session="false" import="java.util.*"%>
<html>
<body>
<%
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(0, 42);
%>
</body>
</html>
=================================================
Fails to compile:

Generated servlet error:
    [javac] Compiling 1 source file

C:\tomcat\work\Catalina\localhost\_\org\apache\jsp\a_jsp.java:47: '('
or '[' expected
		ArrayList<Integer> list = new ArrayList<Integer>();
=================================================
Startup:

C:\tomcat>\j2sdk1.5.0\bin\java -version
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

C:\tomcat>bin\catalina run
Using CATALINA_BASE:   C:\tomcat
Using CATALINA_HOME:   C:\tomcat
Using CATALINA_TMPDIR: C:\tomcat\temp
Using JAVA_HOME:       \j2sdk1.5.0

--- Peter Lin <tcw00lfel@yahoo.com> wrote:
> I run multiple jdk's on my system, so I always edit catalina file
> and put JAVA_HOME in there manually.
> other than that, I didn't make any changes other than add entries
> to the user xml file. which jsp compilation feature are you
> referring to ?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message