下面这个是hiberante产生的类似javabean的东西
@Entity
@Table(catalog = "wangba", name = "pricetype")
public class Pricetype {
    public Pricetype() {
    }    public Pricetype(int id, double price) {
        this.id = id;
        this.price = price;
    }    private int id;    @Id
    @Column(name = "ID", nullable = false, length = 10)
    public int getId() {
        return id;
    }    public void setId(int id) {
        this.id = id;
    }    private double price;    @Basic
    @Column(name = "price", length = 4, precision = 2)
    public double getPrice() {
        return price;
    }    public void setPrice(double price) {
        this.price = price;
    }}我在jsp中想利用jstl读取
                               <c:forEach   var="pricetype"   items="${priceTypes}"> 
                                        <optgroup   label="${pricetype.price}元的机器区"> 
利用javabean时没有错误,可是现在我用hibernate产生的东西(类似javabean)就出现错误说 
_jspx_exception   =   {java.lang.NumberFormatException@4033}"java.lang.NumberFormatException:   For   input   string:   \"price\"" 
希望指点一下,其他地方基本都没变化...不知道why???