You should try to get answers to questions like this on tmcat-users alias.
You'll need to put whatever you import in a package. This is a new
in JDK1.4.
> Date: Wed, 05 Feb 2003 17:39:07 +0530
> From: Sachin Chowdhary <[EMAIL PROTECTED]>
> Subject: bean with jsp
> To: [EMAIL PROTECTED]
> X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
> Importance: Normal
> X-Priority: 3 (Normal)
> X-MSMail-priority: Normal
> X-OriginalArrivalTime: 05 Feb 2003 12:09:09.0271 (UTC)
FILETIME=[63397A70:01C2CD0F]
>
>
> I am trying to use a class by using useBean tag in jsp but i am not able to
> do it so remove all coding and just using import class name syntax but still
> i am not able to do that on tomcat4.1.18 .so what i am doing wrong
>
> can you suggest me
>
>
> C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\jsp
> <%@ page import="MyClass" %>
>
>
>
> Meet a Bean!
>
>
>
> //MyClass.java
>
>
> C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes
> public class MyClass
> {
> public String val;
> }
>
>
>
> HTTP Status 500 -
>
> type Exception report
> message
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> exception
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: -1 in the jsp file: null
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
> C:\Program Files\Apache Group\Tomcat
> 4.1\work\Standalone\localhost\examples\jsp\MyJsp_jsp.java:7: '.' expected
> import MyClass;
> ^
> 1 error
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]