以下是DispathAction里代码出的问题是根本没有进入DispathAction Tomcat服务器错误为404。而且显示的是找不到bainianhaohe/top.do 很郁闷。。跟本就没跳这个路径啊
public ActionForward top(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
pagebean pagebean ;//分页bean下面是XML里的代码
<action path="/top" name="adduser" type="DispathAction.zhuce" parameter="method">
<forward name="isok" path="/logins/loing.jsp"></forward>
</action>下面是jsp里的代码 <table width="200" height="79" border="0" align="center">
<tr>
<td height="24">
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=up">上一页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=next">下一页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=home">首页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=last"> 尾页</a>
</td>
</tr>
<tr>
public ActionForward top(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
pagebean pagebean ;//分页bean下面是XML里的代码
<action path="/top" name="adduser" type="DispathAction.zhuce" parameter="method">
<forward name="isok" path="/logins/loing.jsp"></forward>
</action>下面是jsp里的代码 <table width="200" height="79" border="0" align="center">
<tr>
<td height="24">
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=up">上一页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=next">下一页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=home">首页</a>
<a href="<%=request.getContextPath()%>/top.do?method=top&page1=last"> 尾页</a>
</td>
</tr>
<tr>
应该是加了这句话的原因.
你仔细看下连接地址.
也就是上面错误的bainianhaohe.
连接后的地址就是bainianhaohe/top.do?
所以提示找到