<h2><a href="/addressbook/addressBook.do">浏览记录</a></h2>//  html页面 <action
            path="/addressBook"
name="recordForm"
scope="request"
type="addressbook.action.AddressBookAction"
            parameter="method">                //struts-config.xml设置
一点浏览记录就会看到
type Status reportmessage Servlet action is not availabledescription The requested resource (Servlet action is not available) is not available.
请教一下[email protected]

解决方案 »

  1.   

    protected ActionForward unspecified(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response)
             throws Exception {
    String target = "view";
    PageBean pageBean = new PageBean();
    int page = 1;
    try{
    page = Integer.parseInt(request.getParameter("jumpPage"));
    }catch(NumberFormatException nfe){}
    pageBean.setCurPage(page);
    new RecordDAO().query(pageBean,"");
    request.setAttribute("pageBean",pageBean);
    return mapping.findForward(target);
    }///action部分代码