org.apache.struts.util.RequestUtils涓殑婧愪唬鐮?br />
聽聽聽public static Actionform createActionform(
聽 聽 聽 聽HttpServletRequest request,
聽 聽 聽 聽ActionMapping mapping,
聽 聽 聽 聽ModuleConfig moduleConfig,
聽 聽 聽 聽ActionServlet servlet) {
聽聽聽聽聽聽 ............
聽聽聽聽聽聽............
聽聽聽聽聽聽聽String attribute = mapping.getAttribute();
聽聽聽聽聽聽......
聽聽聽聽聽聽聽Actionform instance = null;
聽 聽 聽 聽HttpSession session = null;
聽聽聽聽聽聽聽if ("request".equals(mapping.getScope())) {
聽 聽 聽 聽 聽 聽instance = (Actionform) request.getAttribute(attribute);
聽 聽 聽 聽} else {
聽 聽 聽 聽 聽 聽session = request.getSession();
聽 聽 聽 聽 聽 聽instance = (Actionform) session.getAttribute(attribute);
聽 聽 聽 聽}
聽聽聽聽聽聽................
聽聽聽聽聽聽聽聽................
聽聽聽聽聽聽聽
聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽
濡傛灉娌℃湁閰嶇疆a(chǎn)ttribute灞炴х殑璇? struts鎵嶄細(xì)浠巒ame灞炴ч噷璇誨嚭瑕佸垱寤虹殑formbean 鐨勫悕瀛?騫跺垱寤轟竴涓嬪疄渚?鐪嬩笅杈圭殑婧愪唬鐮佸氨鐭ラ亾浜? 鍛靛懙.
org.apache.struts.config.ActionConfig
聽聽聽protected String attribute = null;
聽 聽public String getAttribute() {
聽//灝辨槸榪欓噷浜?
聽聽聽聽聽聽聽if (this.attribute == null) {
聽 聽 聽 聽 聽 聽return (this.name);
聽 聽 聽 聽} else {
聽 聽 聽 聽 聽 聽return (this.attribute);
聽 聽 聽 聽}
聽 聽}
聽 聽public void setAttribute(String attribute) {
聽 聽 聽 聽if (configured) {
聽 聽 聽 聽 聽 聽throw new IllegalStateException("Configuration is frozen");
聽 聽 聽 聽}
聽 聽 聽 聽this.attribute = attribute;
聽 聽}
errors.byte={0} must be an byte.
errors.short={0} must be an short.
errors.integer={0} must be an integer.
errors.long={0} must be an long.
errors.float={0} must be an float.
errors.double={0} must be an double.
errors.date={0} is not a date.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.<p>
LogonForm.ipcode=<font color=blue>User name</font>
LogonForm.password=<font color=blue>User password</font>
絳夌瓑浣犳墍鎯寵娣誨姞鐨勪俊鎭?br />