分页时,在jsp页面上,把鼠标停在链接的页码上,状态栏显示“http://localhost:8080/mail/mailAction.action?pager.offset=10”,但点击时报错:HTTP Status 404 - There is no Action mapped for namespace / and action name mailAction.--------------------------------------------------------------------------------type Status reportmessage There is no Action mapped for namespace / and action name mailAction.description The requested resource (There is no Action mapped for namespace / and action name mailAction.) is not available.可是我直接在地址栏里输入“http://localhost:8080/mail/mailAction.action?pager.offset=10”,却能够正确显示下一页内容。
请问这是什么原因呢?(struts2.0 + spring2.5 + hibernate3.3 + mysql5.0 + tomcat5.5 + myeclipse6.5)
请问这是什么原因呢?(struts2.0 + spring2.5 + hibernate3.3 + mysql5.0 + tomcat5.5 + myeclipse6.5)
description The requested resource (There is no Action mapped for namespace / and action name mailAction.) is not available.
你的配置出错,要么就写错了action,
用了struts2的话要配置 namespace这个属性的..
from提交的和在地址栏上面直接输入是不一样的.