?? pricehandler.java
字號:
package controller;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.*;import model.*;import java.util.*;public class PriceHandler extends ActionForm { private int selId; private String price; public String getprice() { return price; } public void setprice(String price) { this.price = price; } public int getSelId() { return selId; } public void setSelId(int selId) { this.selId = selId; System.out.println(selId); } public Product getSelProduct() throws Exception { return ProductsBean.find(selId); } public List<Product> getList() throws Exception { return ProductsBean.getList(); } public List<Product> getProducts() throws Exception { return ProductsBean.findAll(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -