<(|博君临天下维护平台打不开了吗?是维护吗还是|)>

天博平&shy台打不开了吗?是维护吗?_百度知道
天博平&shy台打不开了吗?是维护吗?
提问者采纳
我每天都跟老婆在家43.2.je(复制打开)玩一会的
提问者评价
其他类似问题
为您推荐:
其他4条回答
/zhidao/wh%3D450%2C600/sign=9af800b6ec24b899de1a3//zhidao/pic//zhidao/wh%3D600%2C800/sign=134be2ff00c51c/d31b0ef41bd5ad6e6f044e5c84cb39dbb7fd3c82.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http://c.baidu.hiphotos://c.baidu.jpg" esrc="http<a href="http.hiphotos://c
不安全了现在吉宝平是安全的;’;;‘;’;‘;’;‘;;’;‘
晃过前方的
是的风格去
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁在struts中使用 &html:errors/&不会显示错误请问是错在
点击右边红色标题查看本文完整版:在struts中使用 &html:errors/&不会显示错误请问是错在哪里?在struts中使用 &html:errors/&不会显示错误请问是错在哪里?
我要使输入框不能为空 不然显示 "不能为空!" 但是实际运行是我不输入内容点提交,页面刷新了一下就是没有显示文字.
&%@ page contentType="text/ charset=UTF-8" language="" %&
&%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %&
&body bgcolor="#ffffff"&
&html:errors/&
&html:m action="/tAction.do" focus="username"&
&html:text property="username" /&&br&
&html:submit property="submit" value="/HTML-CSS/Submit"&
&/html:submit&
&/html:form&
tActionForm的validate方法代码是
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors=new ActionErrors();
if((username==null)||(username.length()&1)){
errors.add("ee",new ActionError("不能为空!"));
Struts_config.xml代码:
&?xml ="1.0" encoding="UTF-8"?&
&!DOCTYPE struts-config PUBLIC "-//
Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta..org/struts/dtds/struts-config_1_1.dtd"&
&struts-config&
&form-beans&
&form-bean name="tActionForm" type="errortest.tActionForm"/&
&/form-beans&
&action-mappings&
&action input="/jsp1.jsp" name="tActionForm" path="/tAction" scope="request" type="errortest.tAction" validate="true"&
&forward name="succe" path="/jsp2.jsp"/&
&/action-mappings&
&/struts-config&------解决方法--------------------------------------------------------&html:errors/& 应该放到form里
其实这种非空校验可以用,节约的资源 ------解决方法--------------------------------------------------------同意,用javascript验证这种东西较好,避免提交一次,浪费资源 ------解决方法--------------------------------------------------------new ActionError("不能为空!"));
应为 new ActionError("errors.abc"));
在 ApplicationResources.properties中}

我要回帖

更多关于 天下不败电脑维护论坛 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信