tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: usebean how to?
Date Mon, 15 Sep 2003 13:01:55 GMT

Howdy,
Go find a JSP tutorial ;)  Most of them use tomcat anyways for examples.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Luke Vanderfluit [mailto:luke@chipcity.com.au]
>Sent: Saturday, September 13, 2003 11:23 AM
>To: Tomcat Users List
>Subject: jsp:usebean how to?
>
>Hi,
>
>I'm using tomcat 4.1.27.
>
>I'm trying to get a jsp page to call a bean.
>
>Is there something I need to enter in web.xml or server.xml?
>
>I have tried the examples that come with tomcat, namely the date.jsp
>example.
>When I move the JspCalendar.class file that it calls to a different
>directory and modify the date.jsp file to call it from that directory,
>it doesn't work.
>Why is that?
>
>
>I have a jsp file: /TC/webapps/tutorialbeans/loginPage.jsp
>it calls a bean: /TC/webapps/tutorialbeans/WEB-INF/classes/LoginBean
>I have stripped it down to the minimum.
>
>When I load my jsp file into the browser I get the following error:
>
>##########################
>org.apache.jasper.JasperException: Unable to compile class for JSP
>
>An error occurred at line: -1 in the jsp file: null
>
>Generated servlet error:
>Project base dir set to: /usr/local/tomcat/jakarta-tomcat-4.1.27
>Detected Java version: 1.4 in: /usr/local/j2sdk1.4.2/jre
>Detected OS: Linux
>    [javac] studentMenuPage_jsp.java added as studentMenuPage_jsp.class
>doesn't exist.
>    [javac] Compiling 1 source file
>    [javac] Using modern compiler
>    [javac] Compilation arguments:
>    [javac] '-classpath'
>    [javac]
'/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/tomcat/jakarta-
>tomcat-4.1.27/bin/bootstrap.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/webapps/tutorialbeans/WEB-INF/classes:/usr/local/tomcat/jakarta-
>tomcat-4.1.27/shared/classes:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/classes:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/endorsed/xercesImpl.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/endorsed/xmlParserAPIs.jar:/usr/local/tomcat/jakarta-tomc
at-
>4.1.27/common/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/mail.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/commons-logging-api.jar:/usr/local/tomcat/jakarta-tom
cat-
>4.1.27/common/lib/commons-collections.jar:/usr/local/tomcat/jakarta-tom
cat-
>4.1.27/common/lib/jdbc2_0-stdext.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/commons-pool.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/jasper-compiler.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/naming-factory.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/jndi.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/activation.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/jasper-runtime.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/naming-resources.jar:/usr/local/tomcat/jakarta-tomcat
-
>4.1.27/common/lib/naming-common.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/commons-dbcp.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-
>4.1.27/common/lib/jta.jar'
>    [javac] '-sourcepath'
>    [javac] '/usr/local/tomcat/jakarta-tomcat-
>4.1.27/work/Standalone/localhost/tutorialbeans'
>    [javac] '-encoding'
>    [javac] 'UTF8'
>    [javac] '-g'
>    [javac]
>    [javac] The ' characters around the executable and arguments are
>    [javac] not part of the command.
>    [javac] File to be compiled:
>    [javac]     /usr/local/tomcat/jakarta-tomcat-
>4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java
>
>/usr/local/tomcat/jakarta-tomcat-
>4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java
:7:
>'.' expected
>import LoginBean;
>                ^
>1 error
>#########################################
>
>Can someone help out?
>thanks,
>kind regards,
>Luke
>
>--
>====================================
>"when my computer smiles, I'm happy"
>===============================.~ ~,
>Luke Vanderfluit               |'/']
>Mobile: 0421 276 282            \~/`
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


Mime
View raw message