SSH struts.xml配置出错!怎么改啊,急
原文:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="login" extends="struts-default">
<action name="loginAction" class="loginAction">
<result name="success">/success.jsp</result>
<result name="error">/fail.jsp</result>
</action>
</package>
</struts>
上面红色的地方报错:The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)".
老大些,怎么改! ssh j2ee --------------------编程问答-------------------- 我google了一下、你的配置是不是没有贴全啊???
http://energykey.iteye.com/blog/552931 --------------------编程问答-------------------- 你这配置中有特殊的字符是隐藏的 你把 </package>
之前空格删除了 你这个文档是拷贝过来的 --------------------编程问答-------------------- format格式化一下 --------------------编程问答-------------------- </package>
这段前面有空格,去掉即可 --------------------编程问答-------------------- <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.ui.theme" value="易做图" />
<!-- <constant name="struts.custom.i18n.resources" value="messageResource" /> -->
<constant name="struts.objectFactory" value="spring" />
<package name="register" extends="struts-default">
<action name="register2"><result>/jsp/register.jsp</result></action>
<action name="login" class="login"></action>
<action name="baseInfo" class="baseInfo"><result name="success">/main/baseInfo.jsp</result></action>
</package>
</struts> --------------------编程问答-------------------- 各位大哥,不是格式的问题我的是myeclipse 8.5 Strtus2.1+Hibernate3.3+Spring3.0 然后就报错了,是不是哪里jar包有问题,我还是没有找到原因,请教各位大哥,谢谢!
补充:Java , Java EE