- This topic has 1 reply, 1 voice, and was last updated 18 years, 1 month ago by Bobby.
-
AuthorPosts
-
BobbyMemberHello:
I am getting an error in struts-config.xml. I am using Myeclipse 5.0.1 GA.
Here is my 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>
<exception
key=”global.error.invalidlogin”
path=”/jsp/index.jsp”
scope=”request”
type=”com.cvty.imagingquery2.struts.exceptions.InvalidLoginException”/>
</global-exceptions><global-forwards>
<forward
name=”welcome”
path=”/default.do”
redirect=”true” />
<forward name=”error” path=”/errorpage.jsp”/></global-forwards>
<action-mappings>
<action path=”/login” type=”com.cvty.imagingquery2.struts.action.LoginAction” />
<forward name=”colleague” path=”/existingJsp/selectbeid.jsp” />
<forward name=”failure” path=”/index.jsp”/>
</action>
</action-mappings><message-resources key=”environment” null=”false” parameter=”environment” />
<message-resources key=”imagingquery2″ null=”false” parameter=”imagingquery2″ /><plug-in className=”com.cvty.imagingquery2.struts.plugin.ResourcePlugin”>
<set-property property=”environmentPropertiesFile” value=”environment”/>
<set-property property=”imagingquery2PropertiesFile” value=”imagingquery2″/>
</plug-in></struts-config>
I am getting error at the closing action tag </action> . The error says “The element type action-mappings must be terminated by a matching end tag </action-mappings>”.
I find this corky, since there is a </action-mappings> tag right in the next line.
This is what I have tried so far
(1) I tried to remove space around the action and action-mappings tags.
(2) I tried restarting MyEclipse.These didn’t help either.
Please help.
Thanks in advance!!!
Bhavin
BobbyMemberDon’t worry, I found what the error was .
-
AuthorPosts