struts1跳入指定方法
生活随笔
收集整理的這篇文章主要介紹了
struts1跳入指定方法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1 主頁面調(diào)用
$.ajax({ <a target=_blank href="'<%=contextPath%>/cap/mainPage/updateTreeInfo.do?method=updateTree">url:"<%=contextPath%>/cap/mainPage/updateTreeInfo.do?method=updateTree</a>", data:{inputValue:info}, dataType:"json", success:function(result){ alert("success");} });
2 java 類
3 spring配置文件
?
4 struts1 文件配置
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN""http://struts.apache.org/dtds/struts-config_1_2.dtd"> <struts-config><form-beans><!-- 上傳excel的formBean --><form-bean name="uploadform" type="com.hm.web.excel.upload.entity.ExcelUploadForm"></form-bean></form-beans><action-mappings><!-- 更新主頁面樹信息配置開始 --><action path="/cap/mainPage/updateTreeInfo"type="org.springframework.web.struts.DelegatingActionProxy"scope="request" validate="false" parameter="method"><forward name="result" path="/Module/cap/device/CapDeviceIndex.jsp"></forward> </action><!-- 更新主頁面樹信息配置結(jié)束 --> </action-mappings> </struts-config>
?
?
總結(jié)
以上是生活随笔為你收集整理的struts1跳入指定方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 最小生成树之克鲁斯卡尔算法 ( java
- 下一篇: 最短路径(迪杰斯特拉算法)