Are
you passing in price on the url ? Using * means you need a parameter with the
exact property name to be passed in.
Does
<jsp:setProperty name="pricebean" property="price" value="myprice" /> work
?
Damian
-----Original Message-----
From: Michael Collins [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 20, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: RE: HELP WITH FIRST APPLICATION............Anyone?.Here is the .java file (bean). There is a getPrice method and it is declared public.
package Price;public class PriceHandler{private String thePrice;
public PriceHandler() {
thePrice = null;
}
public void setPrice( String Price ) {
thePrice = Price;
}
public String getPrice() {
return thePrice;
}}Here is what I have in the JSP file<%@ page import="Price.PriceHandler" %><jsp:useBean id="pricebean" scope="page" class="Price.PriceHandler" />
<jsp:setProperty name="pricebean" property="*" />?????
>From: Damian Penney <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: RE: HELP WITH FIRST APPLICATION............Anyone?. >Date: Sat, 20 Jan 2001 10:42:10 -0800 > >Okay well tomcat is working fine the problem lies in the code, have you >imported the PriceHandler bean ? Does it have a getPrice method ? Is the >method public ? > >Damian > > > > Error: 500 > Location: /project/jsp/set_cost.jsp > Internal Servlet Error: > >org.apache.jasper.JasperException: Cannot find any information on property >'Price' in a bean of type 'Price.PriceHandler' > at >org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary. >java, Compiled Code) > at >org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato >r.java:101) > at >org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J >spParseEventListener.java, Compiled Code) > at >org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi >stener.java, Compiled Code) > at >org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE >ventListener.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(JspSe >rvlet.java:152) > at >org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja >va: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:286) > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 >7) > at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC >onnectionHandler.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:479) > > > > > > > >From: Damian Penney > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: RE: HELP WITH FIRST APPLICATION............Anyone?. > >Date: Sat, 20 Jan 2001 09:40:36 -0800 > > > >Sounds as though you have covered everything, CVS is a source control >system > >that you don't have to worry about, not sure what build.xml is but my >apps > >are coming along fine and I've never touched it :) You may need a web.xml > >file in the web-inf dir, just copy one from the examples. > > > >Are you getting any specific errors ? > > > >Damian > > > > > >-----Original Message----- > >From: Michael Collins [mailto:[EMAIL PROTECTED]] > >Sent: Saturday, January 20, 2001 9:29 AM > >To: [EMAIL PROTECTED] > >Subject: Fwd: HELP WITH FIRST APPLICATION............Anyone?. > > > > > > > >Hi all, > >Im new to tomcat and am unsure of a couple of things. > >I have installed some of the examples and they work away on > >httP:\\localhost8080 etc. > >I have started my own project for which I have developed all the HTML >pages. > >I have converted the relevant pages to .jsp developed beans for one of >the > >pages and compiled them to .class. I have gone over the documentation and > >just want to know how to structure the directories. > >Say I put everything into a folder called project right? > >This folder goes into the webapps folder right? > >Now inside in the project folder I have my web-inf folder, inside in that > >folder I have a classes folder and inside in that I have my beans (.java >and > >.class) in there? > >I modify server.xml to look like this > > > docBase="c:/tomcat/webapps/project" > > debug="0" > > reloadable="true" > > trusted="false" > > > > > > >Is this all I have to do? > >I read the documentation and there is all other weird stuff that I dont > >understand. > >Whats the build.xml thing about and the cvs, do I have to do something >with > >them? > >Could someone please just give me a step in the right direction, once I >get > >one application working, Ill be delighted. > >A big thanks in advance, > >Michael > >_________________________________________________________________________ > >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] > > > > >---------------------------------------------------------------------------- >-- > 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]
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]
