HTTP Status 404 - /erp0309/login.action

zhaojunwu1294 2016-03-12 05:58:25
index.jsp
<script type="text/javascript">
top.document.location="login.action";
</script>

struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>
<constant name="struts.devMode" value="true" />
<constant name="struts.ui.theme" value="simple" />
<package name="default" namespace="/" extends="struts-default">
<action name="login">
<result>/WEB-INF/jsps/login.jsp</result>
</action>
</package>
</struts>

web.xml

<display-name>erp0309</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
...全文
106 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdaic 2016-03-12
  • 打赏
  • 举报
回复
可能是struts.xml配置请求映射没有加载到,这个xml默认应放在src根路径下,要修改位置需要在web.xml中添加类似configlocation这样的节点值配成classpath:struts.xml

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧