我对此很陌生,所以请放轻松。
我试图开始工作的代码是:
<jsp:useBean id="EJD" class= "MoverDetailForm" scope="application"/>
<jsp:setProperty name="EJD" property="empFDJoiningDate" param="empFDJoiningDate" />
<% String empFDJoiningDate = EJD.getEmpFDJoiningDate();
out.print("please work" + empFDJoiningDate); %>
empFDJoiningDate 返回“null”,所以我认为它找不到 MoverDetailFom.java?
这确实存在
public class MoverDetailForm extends AbstractCandidateForm {
private String empFDJoiningDate;
/**
* @return Returns the empFDJoiningDate.
*/
public String getEmpFDJoiningDate() {
return empFDJoiningDate;
}
/**
* @param empName The empName to set.
*/
public void setEmpFDJoiningDate(String empFDJoiningDate) {
this.empFDJoiningDate = empFDJoiningDate;
}
任何建议将不胜感激。我被困住了!
谢谢