请教高手一个Java开发工具MyEclipse的细节配置。

One_csdn_Fans 2015-05-06 05:30:42
高手,您好:
小弟从网上找了一个程序研究。
导入到MyEclipse中后,得到如下的界面:


其中出现故障的struts-config.xml的内容如下:
\<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings type="org.apache.struts.action.ActionMapping">

<!-- 鐧诲綍椤甸潰 -->
<action path="/login" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="loginView" path="/login.jsp" />
<forward name="indexView" path="/index.jsp" />
</action>
<!-- 鎮h€呬俊鎭鐞哸ction-->
<action path="/patient" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="addPatientView" path="/addPatient.jsp" />
<forward name="fowardJspView" path="/fowardJsp.jsp" />
<forward name="patientListView" path="/patientList.jsp" />
<forward name="patientDetailOrUpdateView" path="/patientDetailOrUpdate.jsp" />
</action>
<!--鍖荤敓淇伅澶勭悊action-->
<action path="/doctor" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="addDoctorView" path="/addDoctor.jsp" />
<forward name="fowardJspView" path="/fowardJsp.jsp" />
<forward name="doctorListView" path="/doctorList.jsp" />
<forward name="doctorDetailOrUpdateView" path="/doctorDetailOrUpdateUI.jsp" />
</action>
<!--鍖荤敓淇伅澶勭悊action-->
<action path="/test" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="testView" path="/test.jsp" />
</action>
<!--绉戠洰淇伅澶勭悊action-->
<action path="/subject" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="subjectView" path="/subjectJsp.jsp" />
<forward name="addOrUpdateSubjectView" path="/addOrUpdateSubjectUI.jsp" />
</action>
<!--闂绠$悊action-->
<action path="/question" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="questionAddView" path="/questionAdd.jsp" />
<forward name="questionListView" path="/questionList.jsp" />
<forward name="fowardJspView" path="/fowardJsp.jsp" />
<forward name="questionView" path="/question.jsp" />
</action>
<!--绛旀绠$悊action-->
<action path="/answer" scope="request" validate="false" parameter="method"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="subjectView" path="/subjectJsp.jsp" />
<forward name="addOrUpdateSubjectView" path="/addOrUpdateSubjectUI.jsp" />
</action>
</action-mappings>
<plug-in className = "org.springframework.web.struts.ContextLoaderPlugIn" >
<set-property property = "contextConfigLocation" value ="/WEB-INF/classes/applicationContext.xml" />
</plug-in>

<message-resources parameter="com.rems.struts.ApplicationResources" />
</struts-config>]

希望高手能够指教:
上面的故障点,小弟通过记事本怎么能够把图一中的“最后一个故障”,彻底排解?
谢谢高手的过目!!
...全文
95 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dogfish 2015-05-07
  • 打赏
  • 举报
回复
把前面的第一个字符去掉,应该可以的。 只是XML的格式乱了。
One_csdn_Fans 2015-05-06
  • 打赏
  • 举报
回复
高手,不好意思,上面的“配置信息”如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
  <data-sources />
  <form-beans />
  <global-exceptions />
  <global-forwards />
  <action-mappings type="org.apache.struts.action.ActionMapping">
  			
  		<!-- 登录页面 -->
		<action path="/login" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="loginView" path="/login.jsp" /> 
			<forward name="indexView" path="/index.jsp" /> 
		</action>
		
		
		<!-- 患者信息处理action-->
		<action path="/patient" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="addPatientView" path="/addPatient.jsp" /> 
			<forward name="fowardJspView" path="/fowardJsp.jsp" /> 
			<forward name="patientListView" path="/patientList.jsp" />
			<forward name="patientDetailOrUpdateView" path="/patientDetailOrUpdate.jsp" />
		</action>
		
		<!--医生信息处理action-->
		<action path="/doctor" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="addDoctorView" path="/addDoctor.jsp" /> 
			<forward name="fowardJspView" path="/fowardJsp.jsp" /> 
			<forward name="doctorListView" path="/doctorList.jsp" />
			<forward name="doctorDetailOrUpdateView" path="/doctorDetailOrUpdateUI.jsp" />
		</action>
		
		
		
		<!--医生信息处理action-->
		<action path="/test" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="testView" path="/test.jsp" /> 
		</action>
		
		
		<!--科目信息处理action-->
		<action path="/subject" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="subjectView" path="/subjectJsp.jsp" /> 
			<forward name="addOrUpdateSubjectView" path="/addOrUpdateSubjectUI.jsp" /> 
		</action>
		
		
		<!--问题管理action-->
		<action path="/question" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="questionAddView" path="/questionAdd.jsp" /> 
			<forward name="questionListView" path="/questionList.jsp" /> 
			<forward name="fowardJspView" path="/fowardJsp.jsp" /> 
			<forward name="questionView" path="/question.jsp" /> 
		</action>
		
		<!--答案管理action-->
		<action path="/answer" scope="request" validate="false" parameter="method"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="subjectView" path="/subjectJsp.jsp" /> 
			<forward name="addOrUpdateSubjectView" path="/addOrUpdateSubjectUI.jsp" /> 
		</action>
		
  </action-mappings>
   	<plug-in  className =  "org.springframework.web.struts.ContextLoaderPlugIn" >
   			<set-property  property = "contextConfigLocation"  value ="/WEB-INF/classes/applicationContext.xml" />
	</plug-in>

  <message-resources parameter="com.rems.struts.ApplicationResources" />
</struts-config>

5,657

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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