struts问题,待解决 我的一个action中有三个方法 execute()... addInput ()... queryInput().......此action继承dispatcherAction,配置文件中parameter="method" ,但是在页面端我的method不管怎么指定都执行的是execute方法如果我去掉execute方法又可以执行其他得分方法了,这种情况是怎么回事? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 都用dispatchAction了,还要execute干嘛 是不是你重写了execute方法..用了DispatchAction基本可以不用execute方法了吧. 在DispatchAction中最好不要有execute方法,DispatchAction的父类action中也有这个方法,方法里面有些处理,比如获得参数,调用与参数相匹配的方法。你在DispatchAction重写了execute,他就只会调用这个execute方法了,就不会调用其他的方法了。 是啊,只要你指定的方法不就ok了一般Action里用executedispatchAction就写自己的method了 convention plugin ORRESTFUL pluginrocks! 搞不懂你的想法……有DispatchAction了,还要execute…… 执行super.execute()方法不就可以了么 因为不管你以post还是get方式提交默认都是执行execute()方法,如果要执行 可以通过传相应的参数来实现 maybe you can overide the method of excute 继承dispatcherAction 里面是不可以有execute()的方法 把这个方法去掉就没问题了 在DispatchAction中execute方法没必要,最好不要写 在DispatchAction中execute方法没必要,最好不要写 在DispatchAction中最好不要有execute方法,因为一进方法,就默认调用execute,所以用DispatchAction一般都把execute方法干掉 web.xml 中<jsp-file> 路径配置问题 怎么关掉window xp 的防火墙 关于 Oracle 的 Universal Content Management struts 500错误问题 使用Struts的Token机制,控制form重复提交 apache tomcat 集群问题,分数不多了,大家能帮尽量帮我吧,全给了,真没分了 一个读取XML的问题 用EJB如何实现池化资源(如连接池) 在weblogic里配完jndi后,用ibatis调用jndi出错,help!! jms入门问题,发送消息到远程,怎么获得结果 高手请进,Validate框架棘手问题 数据库表设计
是啊,只要你指定的方法不就ok了
一般Action里用execute
dispatchAction就写自己的method了
OR
RESTFUL plugin
rocks!