Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with struts-config

807569Jul 13 2006 — edited Jul 13 2006
hi all,

i have using struts. i have written struts-config file which is giving some error while start the tomcat 5.xxx

struts-config shown below
<?xml version="1.0" encoding="ISO-8859-1" ?>
    <!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>
    <message-resources parameter="resources.application"/>

    <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" />


    <plug-in className="org.apache.struts.tiles.TilesPlugin">
        <set-property property="definitions-config"
            value="/WEB-INF/tiles-admin-defs.xml"/>
        <set-property property="moduleAware" value="true"/>
        <set-property property="definitions-parser-validate" value="true"/>
    </plug-in>
    </struts-config>
error is

must match "(display-name?,description?,data-sources?,form-beans?,global-excep
ons?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*
.
org.xml.sax.SAXParseException: The content of element type "struts-config" mus
match "(display-name?,description?,data-sources?,form-beans?,global-exceptions
global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)



please tell me what did i made wrong
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2006
Added on Jul 13 2006
1 comment
145 views