hi,

we are in the process of developing an E-Commerce store using JSP, and =
are having difficulty getting our getXXX() methods to work. We can =
retrieve our getPrice() method, but we cannot retrieve the others in the =
same class. Both methods are identical in that they are floats.=20

this is the JSP calling the methods (prod_code is passed from the =
previous page)
<%
SWRTstore_product prod =3D new SWRTstore_product(prod_code);

float price =3D prod.getPrice(); // works fine
float weight =3D prod.getWeight(); // this doesn't work=20
%>

the error given is method getWeight() F not found. Both methods are =
returning Floats

The methods in the class are as follows:-

public float getPrice(){
    return price;
}

public float getWeight(){
    return weight;
}

where price and weight are variables defined in the product class

anyhelp would be greatfully received..

alan goodenough

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to