初学STRUTS问题(2)--- form bean的validate方法为什么没能给我返回error??? org.apache.jasper.JasperException 编译错误 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 struts-config.xml==><action-mappings>标记中对应path="/HelloWorld"的<action/>标记里,配属性validat="true" input="/yourinput.jsp" sorry,看这个struts-config.xml==><action-mappings>标记中对应path="/HelloWorld"的<action/>标记里,配属性validate="true" input="/yourinput.jsp" 我的struts-config是这个样子的:<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><!-- This is the Struts configuration file for the "Hello!" sample application--><struts-config> <!-- ======== Form Bean Definitions =================================== --> <form-beans> <form-bean name="HelloForm" type="hello.HelloForm"/> </form-beans> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <!-- Say Hello! --> <action path = "/HelloWorld" type = "hello.HelloAction" name = "HelloForm" scope = "request" validate = "true" input = "/hello.jsp" > <forward name="SayHello" path="/hello.jsp" /> </action> </action-mappings> <!-- ========== Message Resources Definitions =========================== --> <message-resources parameter="com.youcompany.struts.ApplicationResources" /></struts-config> 按要求设置完还是不能返回,xunyiren!!帮帮我!加我MSN:[email protected]希望和你成为朋友 你在你的ActionForm加上几条语句,看看到底你的userName等于什么,可以将form的method设为get以方便调试 ok ! let me hv a try. 网站统计,如果从IIS日志中取出准确的访客量(也就是相当于取到独立IP的数量).. JAVA群100952164,企业交流群 求教JBuilder2006+Weblogic8.1+jasperreport2报表系统报错, struts 表单提交成功后如何清空表单??? 求助!struts标签问题 请教hibernate的级联更新问题 log4j 的问题 急急急!!!!!!!! 求助:设置数据库连接池的JNDI名时的疑问 请问:已经编好的一个计算器程序,有文本框、按钮等控件,如何在网页上运行? 关于springboot项目中文件下载的求助 急寻 CORBA出错,请高手帮忙,菜鸟问题
validat="true" input="/yourinput.jsp"
validate="true" input="/yourinput.jsp"
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><!--
This is the Struts configuration file for the "Hello!" sample application
--><struts-config> <!-- ======== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="HelloForm" type="hello.HelloForm"/>
</form-beans> <!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Say Hello! -->
<action path = "/HelloWorld"
type = "hello.HelloAction"
name = "HelloForm"
scope = "request"
validate = "true"
input = "/hello.jsp"
>
<forward name="SayHello" path="/hello.jsp" />
</action>
</action-mappings> <!-- ========== Message Resources Definitions =========================== -->
<message-resources parameter="com.youcompany.struts.ApplicationResources" />
</struts-config>