求 DispatchAction 的页面请求例子 求 DispatchAction 的页面请求例子 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 struts-config.xml的ACTION中要配置parameter="method" <action parameter="method" path="/toworkplan" scope="request" type="com.lanzhengwu.struts.action.ToworkplanAction" validate="false" > <forward name="ok" path="/jsp/workplanadmin.jsp" /> </action>ACTION如下,要继承BasedispatchAction不能有execute方法..public class ToworkplanAction extends BasedispatchAction { public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { }}页面就是:<a href="toworkplan.do?method=edit">test</a> 谢谢,已经成功。随便问下,DispatchAction 主要用在什么情况下呢? 有时一个ACTION中要处理多个逻辑时,要带参数过去判断,有点麻烦..用DispatchAction的话可以加快速度而且逻辑清楚.. web开发 怎么用新上传的图片替换掉已有的图片?求各位前辈指导 在一个类中如何取到struts-config中的值? 应用session还需要设置什么东西吗 如何刷新页面? ===带参数的url请求编码问题!!=== 访问量大,服务器吃不消,怎么办?!急 iframe问题请教 调用sybase存储过程,返回结果集为null,不知道错在哪里 帮帮我,怎样将int型转为String型? 浏览器访问正常,程序抓取返回 500 hibernate的问题,非常非常着急。 急死了,小弟快疯了!!!请教高手指点!!java发送邮件 带附件的问题!
parameter="method"
path="/toworkplan"
scope="request"
type="com.lanzhengwu.struts.action.ToworkplanAction"
validate="false" >
<forward name="ok" path="/jsp/workplanadmin.jsp" />
</action>ACTION如下,要继承BasedispatchAction不能有execute方法..public class ToworkplanAction extends BasedispatchAction {
public ActionForward edit(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) { }
}页面就是:
<a href="toworkplan.do?method=edit">test</a>
随便问下,DispatchAction 主要用在什么情况下呢?
用DispatchAction的话可以加快速度而且逻辑清楚..