你想让它执行什么方法都可以。。看你怎么配Struts中的Parameter差数
解决方案 »
- geoserver2.0发布postgis出错怎么处理啊
- 关于 InterruptedException 异常
- 怎样才能学好JaVA
- web项目中分页操作如何实现最好
- 如何设置JMS的超时
- spring+hibernate+struts 如何从 jsp 页面上获得spring DAO中的方法
- 请问多对多查询效率最高的HQL怎么写
- 请教各位:我准备应聘Java与J2EE方面开发工程师,想知道常见的面试题,指个方向也可以的。谢谢
- 在tomcat中运行jsp.(快帮忙吧!)
- 那为可以告诉我怎么在Websphere 5.0里面怎么写Structs呀!!!
- 求:下来菜单框的代码
- apache poi 如何创建带http link的cell
想调用那个方法,就在页面,提交、Action中Parameter=“方法名”
<action
attribute="productInfoForm"
name="productInfoForm"
parameter="method"
path="/SysManager/productInfo"
scope="request"
validate="true"
input="/SysManager/pinfo_add.jsp"
>
<forward name="ProductInfoFail" path="/SysManager/opError.jsp" />
<forward name="GetProductInfoSuccess" path="/SysManager/pinfo_oneShow.jsp" />
<forward name="AddProductInfoSuccess" path="/SysManager/productInfo.do?method=showProductInfo" />
<forward name="deleteProductInfoSuccess" path="/SysManager/productInfo.do?method=showProductInfo" />
<forward name="ShowProductInfoSuccess" path="/SysManager/pinfo_show.jsp"></forward>
</action> < a href="newsInfo.do?method=showNewsInfo"></a>
的都不会用execute这个方法了
一般都是自己写方法
只是方法申明相同而方法名不同的方法
然后调用和7楼说的一样
不知道楼主是打算做什么
难道还不知道DispatchAction怎么用?