tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Koeninger" <jkoe...@jjcc.com>
Subject Re: Use of Java Classes in .JSP fails under Tomcat 3.2
Date Wed, 16 Jan 2002 21:32:52 GMT
On Wed, 16 Jan 2002 15:13:58 -0600, Jerry Jalenak wrote:

>When I attempt to access methods defined in Java from a .JSP, I am receiving
>a message that the method is not being found.  For example, I have been
>testing with the following .JSP:
>
><%@page import="java.util.*, java.lang.*"%>
><%
>		// Test
>
>	String myString = "100" ;
>	int myInt = parseInt(myString) ;

How can you call parseInt without specifying a class?  Wouldn't this work 
better?

int myInt = Integer.parseInt( myString );

Regards,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message