Hi all. Help needed here for an amatuer, should be easy enough to fix.
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="*" />
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.
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]
