Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

struts.xml error - Element type "constant" must be declared

shahab

2007-01-31

Replies:


Hi:

I am getting the following error while accessing my web pages -

SEVERE: Element type "constant" must be declared. at (null:7:60)
org.xml.sax.SAXParseException: Element type "constant" must be declared.

Below is my 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>
  <constant name="struts.objectFactory" value="spring" />
  <constant name="struts.devMode" value="true" />

  <package name="tms" namespace="/tms" extends="struts-default">

   <action name="Blank" class="tms.action.common.Blank">
       <result>/web/jsp/login/Login.jsp</result>
    </action>

    <action name="list" method="execute" class="TMSUserAction">
     <result>/web/jsp/usermgmt/list.jsp</result>
     <result name="input">/web/jsp/usermgmt/list.jsp</result>
    </action>

  </package>

</struts>


I would greatly appreaciate your help.

thanx
Shahab
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.