I'm just throwing together a demo application to refresh myself w/ struts
but have
run into a problem where the struts-config.xml is resulting in parsing
errors, problem
is I can't figure out where the error is.  If someone could point it out I
would appreciate
it.

<?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE struts-config PUBLIC
 "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
 "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

<struts-config>

<global-forwards>
 <!-- Query Database -->
  <forward name="query" path="/do/query"/>
  <!-- Browse Database -->
  <forward name="browse" path="/do/browse"/>
  <!-- Submit Bug Report -->
  <forward name="newbug" path="/do/newbug"/>
</global-forwards>

<form-beans>
 <form-bean name="QueryForm" type="web.QueryForm"/>
 <form-bean name="BrowseForm" type="web.BrowseForm"/>
 <form-bean name="NewbugForm" type="web.NewbugForm"/>
</form-beans>

<action-mappings>
 <action path="/query"
  type="web.QueryAction"
  name="QueryForm"
  input="/WEB-INF/pages/query.jsp"
  scope="request">
 </action>

 <action path="/browse"
  type="web.BrowseAction"
  name="BrowseForm"
  input="/WEB-INF/pages/browse.jsp"
  scope="request">
 </action>

 <action path="/newbug"
  type="web.NewbugAction"
  name="NewbugForm"
  input="/WEB-INF/pages/newbug.jsp"
  scope="request">
 </action>
</action-mappings>

</struts-config>

The error I'm getting from tomcat is, line 46 column 17 refers to a
non-existent position in the document.
While the document does have 46 lines it is the last line and column 17 is
beyond the closing > of the
</structs-config> tag.

SEVERE: Parse Error at line 46 column 17: The content of element type
"struts-config" must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config"
must match
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappi
ngs?,controller?,message-resources*,plug-in*)".




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to