Hmmm.
The error message says: "parkingPricehandler". Your Code-Fragment uses
"parkingPriceHandler". This may be the reason.

Another reason:
It seems to me that "getPrice" is not declared static and public. Please
check this out also.

Matthias

> -----Ursprüngliche Nachricht-----
> Von:  Mick Sullivan [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 7. März 2001 15:48
> An:   [EMAIL PROTECTED]
> Betreff:      Please Help On Static Reference ........
> 
> Hi all,
> I was wondering could someoone please help me with this error im getting.
> 
> Im trying to output a value saved from a previous page in a text box in a 
> new page using the JSP command:
> <INPUT TYPE="TEXT" NAME="price" SIZE="0" 
> VALUE="<%=parkingPriceHandler.getPrice()%>">
> 
> The function getPrice() is defined in parkingPriceHandler.
> This is the error i get:
> "Can't make static reference to method java.lang.String getPrice() in
> class 
> parkingPrice.parkingPricehandler."
> 
> Error: 500
> Location: /project/jsp/view_parking_cost.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException: Unable to compile class for 
> JSPC:\tomcat\work\localhost_8080%2Fproject\_0002fjsp_0002fview_0005fparkin
> g_0005fcost_0002ejspview_0005fparking_0005fcost_jsp_30.java:94: 
> Can't make static reference to method java.lang.String getPrice() in class
> 
> parkingPrice.parkingPricehandler.
>                 out.print(parkingPricehandler.getPrice() );
>                                                       ^
> 1 error
> 
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
> Compiled 
> Code)
>       at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> Compiled 
> Code)
>       at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, 
> Compiled Code)
>       at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
> Compiled 
> Code)
>       at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
> Servlet.java, 
> Compiled Code)
>       at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> java, 
> Compiled Code)
>       at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, 
> Compiled Code)
>       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled 
> Code)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
>       at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
> Compiled Code)
>       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,
> 
> Compiled Code)
>       at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
> Compiled Code)
>       at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.java, 
> Compiled Code)
>       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)
> 
> Whats the Story with Static Referencing???
> Please please help coz my project is due up very soon and Im dead
> confused,
> Thanks a million in advance.
> 
> 
> _________________________________________________________________________
> 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]

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

Reply via email to