and currently I have placed my bean file into this folder and load the following jsp page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Using a Javabean</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h2>Using a java bean</h2>
Also I have some doubts to clarify. 1) Do I need to have the WEB-INF folder in every context directory? 2) Do I need to create a web.xml at this stage where I just making use of this simple javabeans?
Can anyone tell me where should the proper place to store the bean (.class) file??
Regards, Joe
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: 9 in the jsp file: /test.jsp
Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/testWEB/test_ jsp.java:51: package com.wrox.cars does not exist [javac] com.wrox.cars.CarBean myCar = new com.wrox.cars.CarBean(); [javac] ^
An error occurred at line: 9 in the jsp file: /test.jsp
Generated servlet error: [javac] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/testWEB/test_ jsp.java:51: package com.wrox.cars does not exist [javac] com.wrox.cars.CarBean myCar = new com.wrox.cars.CarBean(); [javac] ^ [javac] 2 errors