我用ssh做了一个下项目没用struts标签。都是html和jstl
查询后页面同过struts的跳转到了find.do?method=findAll这里 是不是因为这里的问题 我action的input写的是这个值
现在的问题来了
我的显示模拟表下面 :
科室号 科室名 操作
1 d1 删除
2 d2 删除我现在是想做一个连接点那个删除就跳到一个action里面。可是老是跳不进去。
<action path="/del" attribute="deptForm" name="deptForm"
type="org.springframework.web.struts.DelegatingActionProxy"
input="/find.do?method=findAll" scope="request" parameter="method">
<forward name="success" path="/all/M05/UC01.jsp"></forward>
</action>
jsp里面是这么写的<a href="../../del.do?method=delelet&id=${list.dept_id}">删除</a>
我是想让他跳到method为delete的的DispatchAction里面去用request.getParameter("id")得到这个id来执行删除。
这样的思路不行吗?
大虾帮忙了
查询后页面同过struts的跳转到了find.do?method=findAll这里 是不是因为这里的问题 我action的input写的是这个值
现在的问题来了
我的显示模拟表下面 :
科室号 科室名 操作
1 d1 删除
2 d2 删除我现在是想做一个连接点那个删除就跳到一个action里面。可是老是跳不进去。
<action path="/del" attribute="deptForm" name="deptForm"
type="org.springframework.web.struts.DelegatingActionProxy"
input="/find.do?method=findAll" scope="request" parameter="method">
<forward name="success" path="/all/M05/UC01.jsp"></forward>
</action>
jsp里面是这么写的<a href="../../del.do?method=delelet&id=${list.dept_id}">删除</a>
我是想让他跳到method为delete的的DispatchAction里面去用request.getParameter("id")得到这个id来执行删除。
这样的思路不行吗?
大虾帮忙了
我查询后action跳转到了find.do?method=findAll这
我input=find.do?method=findAll可以吗
action里面那里错了吗?