Welcome to WebmasterWorld Guest from 54.161.227.32

Forum Moderators: phranque

Message Too Old, No Replies

Javabeans folder not found

JSP and javabeans

     
7:06 pm on Jan 12, 2009 (gmt 0)

New User

10+ Year Member

joined:Oct 10, 2004
posts: 12
votes: 0


c:\apache-tomcat-4.1.39

Under webapps, theres an application that well call sampleapp.

Under sampleapp is
-A folder called web which has adminjava_lt.jsp

Under the web folder is
-A folder called WEB-INF

Under WEB-INF is a folder called classes

Under classes are:
-a folder called beans
-a folder called servlets

I believe this is the directory structure expected in the Tomcat manual.
***********************

The beginning code of adminjava_lt.jsp is:

<%@ page language="java"
import="java.sql.*"
import="java.io.*"
import="java.util.*"
import="java.util.Date"
import="java.text.*"
import="javax.servlet.*"
import="beans.*"
%>

<jsp:useBean id="ltable" class="beans.BNLDatabase"/>
<jsp:useBean id="ptable" class="beans.BNMetadata"/>
<jsp:useBean id="list" class="beans.BNCreateListTable"/>

****
When I enter:

[localhost:8080...] in the address window Im getting the error message

package beans does not exist

How can I get Tomcat to find the beans folder.

Thanks,

Robin

6:36 pm on Jan 14, 2009 (gmt 0)

New User

10+ Year Member

joined:Oct 10, 2004
posts: 12
votes: 0


These problems were resolved by:
- installing Tomcat 6
- using the Java compiler, javac, instead of ANT
- adding CLASSPATH to environment variables to point to the servlet api.jar file under the lib folder

Robin

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members