This is a listserve about server configuration - there is a JSP listserve - why in the world would you use the weapps admin context. That is for server administration - not your applications. You need to create your own context via the server.xml file in the conf directory (easy to do) look at the faq in the docs directory. Also your bean is in the wrong place. Read the docs!
--Pete--
----- Original Message -----
Sent: Thursday, January 18, 2001 6:52 PM
Subject: Error: 500 -- Please Help ..............

Hi all. Help needed here for an amatuer, should be easy enough to fix.
 
Im working on an online car park booking system for a project for uni.
Here is my problem.........
I have a frames page, index.html, for the booking system in
webapps\Admin.
One of the pages within the frames page is called view_parking_cost.jsp.

Within view_parking_cost.jsp, I have the following JSP code declared at the top.

<%@ page import="parkingPrice.ParkingPriceHandler" %>

<jsp:useBean id="parkingpricebean" scope="page" class="parkingPrice.ParkingPriceHandler" />
<jsp:setProperty name="parkingpricebean" property="*" />

<%@ page import="parkingPrice.ParkingPriceHandler" %>

In the webapps\Admin\Web-inf\Classes\parkingPrice folder  I have written the following .java file and compiled it to .class using JDK.

Name of file = "ParkingPriceHandler.java"

package parkingPrice;
public class ParkingPriceHandler{
private String thePrice;
public ParkingPriceHandler() {
thePrice = null;
}
public void setPrice( String Price ) {
thePrice = Price;
}
public String getPrice() {
return thePrice;
}

}

 

In the Server.xml file I have added this code for the context.
docBase="webapps/Admin"
debug="0"
reloadable="true"
trusted="false" >
When I start the server and point my webbrowser to
http://localhost:8080/Admin/index.html
and then go to the set_parking_price.jsp page I get the following error:

Error: 500

Location: /Admin/set_parking_cost.jsp

Internal Servlet Error:
org.apache.jasper.JasperException: Cannot find any information on property 'Price' in a bean of type 'parkingPrice.ParkingPriceHandler'
	at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java, Compiled Code)
	at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
	at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)
It says it cannot find any info on variable Price, though I have declared it.
Could it be something to so with my classpath or something?
Thanks in advance, Mick.


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]

Reply via email to