例
SearchBean 中
public class SearchBean {
private String media_name=
public String getMedia_name() {
return media_name;
}
public void setMedia_name(String media_name) {
dia_name = media_name;
}
}
faces
<managed
<managed
<managed
<managed
</managed
JSP頁面中使用
<h:outputText value=
<h:inputText value=
例
JSP頁面中
<h:commandButton value=
<f:attribute name=
</h:commandButton>
在bean中
public void uploadFile(ActionEvent ae) throws Exception{
user_name = (String) ae
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26852.html