用struts2 下jdk1.4报告这个问题是什么原因呀!xml dtd 不对?
悬赏:10 发布时间:2008-07-25 提问人:beyondsanli (初级程序员)
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and
has no forwarding address.
原来 struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<!-- 配置一个包空间 -->
<package name="com" extends="struts-default">
<action name="Index" class="com.test.IndexAction">
<result name="success">/pages/common/login.jsp</result>
</action>
<!-- 这里是通过一个假的名称,对应spring容器管理的beanid -->
</package>
</struts>
更改为
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<!-- 配置一个包空间 -->
<package name="com" extends="struts-default">
<action name="Index" class="com.test.IndexAction">
<result name="success">/pages/common/login.jsp</result>
</action>
<!-- 这里是通过一个假的名称,对应spring容器管理的beanid -->
</package>
</xwork>
请问为什么?
问题补充:
我就是要用jdk1.4现在不是有了转jdk1.4的方案了?
可能大家还没有这样的体会;公司要用新技术但是服务器还是老的!
有谁知道帮个忙吧!
该问题已经关闭: retrotranslator-transformer将jar转换为jdk1.4可用的包,并且将web.xml该为2.3的通过,谢谢大家了!
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and
has no forwarding address.
原来 struts.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<!-- 配置一个包空间 -->
<package name="com" extends="struts-default">
<action name="Index" class="com.test.IndexAction">
<result name="success">/pages/common/login.jsp</result>
</action>
<!-- 这里是通过一个假的名称,对应spring容器管理的beanid -->
</package>
</struts>
更改为
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<!-- 配置一个包空间 -->
<package name="com" extends="struts-default">
<action name="Index" class="com.test.IndexAction">
<result name="success">/pages/common/login.jsp</result>
</action>
<!-- 这里是通过一个假的名称,对应spring容器管理的beanid -->
</package>
</xwork>
请问为什么?
问题补充:
我就是要用jdk1.4现在不是有了转jdk1.4的方案了?
可能大家还没有这样的体会;公司要用新技术但是服务器还是老的!
有谁知道帮个忙吧!
该问题已经关闭: retrotranslator-transformer将jar转换为jdk1.4可用的包,并且将web.xml该为2.3的通过,谢谢大家了!




