67,515
社区成员
发帖
与我相关
我的任务
分享
request.setAttribute("userDTO", userDTO);
<html:text property="userDTO.name" value="${userDTO.name}" />
<html:text property="userDTO.password" value="${userDTO.password}" />
private UserDTO userDTO ;
public ActionErrors validate(...,...) {
// 略
}
public void reset(..., ...) {
userDTO = new UserDTO ();
}
public userDTO getUserDTO () {
return userDTO ;
}
public void setUserDTO (UserDTO userDTO ) {
this.userDTO = userDTO ;
}
<c:if test="${userVO.name == null}">
<html:text property="name" />
</c:if>
<c:if test="${userVO.name != null}">
<html:text property="name" value="${userVO.name}" />
</c:if>