WIN 2000, tomcat4.1, jdk14 hi, i am getting the following error for struts-config.xml file, i tried to save file as ANSI using notepad but still same error. file is pasted at the end of this message.
thanks wasiq PARSE error at line 1 column 1 org.xml.sax.SAXParseException: Content is not allowed in prolog. register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:C:/tomcat/webapps/tvly/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 'jar:file:C:/tomcat/webapps/tvly/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd' register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 'jar:file:C:/tomcat/webapps/tvly/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd' resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') Resolving to alternate DTD 'jar:file:C:/tomcat/webapps/tvly/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' ---------------------- struts-config.xml ----------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> <!-- ========== Data Source Configuration =============================== --> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="submitForm" type="com.travelocity.cruise.SubmitForm"/> </form-beans> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> <!-- Example logon forward <forward name="logon" path="/logon.jsp"/> --> </global-forwards> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <action path="/submit" type="com.travelocity.cruise.SubmitAction" name="submitForm" input="/submit.jsp" scope="request"> <forward name="success" path="/submit.jsp"/> <forward name="failure" path="/submit.jsp"/> </action> <!-- The standard administrative actions available with Struts --> <!-- These would be either omitted or protected by security --> <!-- in a real application deployment --> <action path="/admin/addFormBean" type="org.apache.struts.actions.AddFormBeanAction"/> <action path="/admin/addForward" type="org.apache.struts.actions.AddForwardAction"/> <action path="/admin/addMapping" type="org.apache.struts.actions.AddMappingAction"/> <action path="/admin/reload" type="org.apache.struts.actions.ReloadAction"/> <action path="/admin/removeFormBean" type="org.apache.struts.actions.RemoveFormBeanAction"/> <action path="/admin/removeForward" type="org.apache.struts.actions.RemoveForwardAction"/> <action path="/admin/removeMapping" type="org.apache.struts.actions.RemoveMappingAction"/> </action-mappings> </struts-config> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>