VimIy微民网,让世界倾听微民的声音! 设为首页 | 加入收藏 | 网站地图
当前位置:主页 > 大杂烩 >

[微民网的码农最屌了] [你们最专业] 报销流程输入的值怎么通过struts带回action?

整理时间:2012-11-27 16:25 来源:www.vimiy.com 作者:编辑 点击:

【楼主】Stefanielol丶2012-11-25 10:06
» struts1请问:为什么在报销流程里输入的值点击提交之后不能传回action 哪里错了,求大牛指教啊!!!!!!! <struts-config><data-sources /><form-beans><form-bean name="loginForm"type="org.apache.struts.validator.LazyValidatorForm" /><form-bean name="initInfoForm"type="org.apache.struts.validator.LazyValidatorForm" /><form-bean name="examineForm"type="org.apache.struts.validator.LazyValidatorForm" /></form-beans><global-exceptions /><global-forwards></global-forwards><action-mappings><action attribute="examineForm" name="examineForm" path="/page/ex"scope="request" parameter="method"type="com.lx.action.ExamineAction" validate="false"><forward name="success" path="/page/ex/list.jsp" /><forward name="rimburse" path="/page/ex/rimburselist.jsp"></forward><forward name="login" path="/login_index_fresh.jsp" /></action></action-mappings></struts-config>
作者:涅盘的码农2012-11-25 10:09
太长了。
作者:Stefanielol丶2012-11-25 10:10
太长了。
作者:圣光蚂蚁2012-11-25 10:12
Post by 圣光蚂蚁 (2012-11-25 10:12)
作者:Stefanielol丶2012-11-25 12:30
自顶一发
作者:stkira2012-11-25 14:23
我靠这么长
作者:Stefanielol丶2012-11-25 14:30
我靠这么长
作者:Lonelyakon2012-11-25 14:39
我靠~毕业了就没写过代码~跪了
作者:linesight2012-11-25 23:32
楼主要修改jsp:添加<%@ taglib prefix="s" uri="/struts-tags" %>再用struts的tag namespace把旧的form换了例子就是:<%@ page contentType="text/html; charset=UTF-8" %><%@ taglib prefix="s" uri="/struts-tags" %><html><head><title>Name Collector</title></head><body><h4>Enter your name </h4><s:form action="HelloWorld"><s:textfield name="name" label="Your name"/><s:submit/></s:form></body></html>
作者:linesight2012-11-25 23:34
忘了说这是struts2的方法,不知道对1适不适用
作者:忘知槐破梦2012-11-25 23:40
表单提交的时候,action要对应action form自己找本书看看你form的写法对不对吧,很多年都没摸过struts了,但我至少记得jsp肯定不是用的form标签另外actionform是需要在写配置文件的改动
作者:死亡救赎2012-11-25 23:46
struts2整合过了struts1的标签的,不能直接用没传过去是不是配置文件有问题?写个简洁点的jsp先测试下能传递否-_-话说我只写过struts2,帮不上你了楼主
作者:Stefanielol丶2012-11-26 09:44
多谢各位,3q

关于网站 | 网站声明 | 用户反馈 | 合作伙伴 | 联系我们
Copyright © 2012年2月8日