facebook

[Closed] Struts congig.xml error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #260286 Reply

    Bobby
    Member

    Hello:

    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”&gt;

    <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

    #260287 Reply

    Bobby
    Member

    Don’t worry, I found what the error was .

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Struts congig.xml error

You must be logged in to post in the forum log in