请教一个问题
choaryzhang
2010-05-05
HttpServletRequest request = this.getRequest();
HttpServletResponse response = this.getResponse(); request.getRequestDispatcher("/layout/manager/mana_main.so?funcId=6").forward(request, response); 为何总是报告URL ("/layout/manager/mana_main.so?funcId=6 找不到呢 HTTP Status 404 - /sharpen/layout/manager/mana_main.so -------------------------------------------------------------------------------- type Status report message /sharpen/layout/manager/mana_main.so description The requested resource (/sharpen/layout/manager/mana_main.so) is not available. |
|
yhailj
2010-05-05
struts2 你可以叫它 webwork, 但它绝不是 struts1. 你必须深刻的明白这一点才行!
|
|
flyboNew
2010-05-31
这是struts1的代码?
|
|
fengfeng925
2010-05-31
servlet
|
|
blogzhoubo
2010-10-19
很有可能是web.xml里面的servlet-mapping的配置问题。检查一下url-pattern的设置和你forward的path是否能够匹配上。
<servlet> <servlet-name>DownloadAction</servlet-name> <servlet-class>com.bbs.util.DownloadAction</servlet-class> </servlet> <servlet-mapping> <servlet-name>DownloadAction</servlet-name> <url-pattern>/layout/manager/*</url-pattern> </servlet-mapping> |
|
hanz188
2010-10-20
建议楼主下次不要再发这种帖子了,你看看Javaeye论坛发帖须知是怎么说的:请遵守提问的智慧,清晰描述问题。你的标题太抽象了。
|