Hi Amol, resource file is under the hierachy as shown(I am using Tomcat server) \webapps\register\WEB-INF\classes\resources\MessageResource.properties register is context.
Still i am getting an exception version of struts is struts_1_0_2. --- Amol Yadwadkar <[EMAIL PROTECTED]> wrote: > > > > Hi Swapnil, > Is ur " resources " folder is under classes > Directory ? > If not Pls try putting it. > Also pls let me know which version of Struts are u > using ? Is it 1.2 ?? > Thankx > Best regds, > Amol > > > > > -----Original Message----- > From: Swapnil Patil > [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 21, 2005 11:33 AM > To: Struts Users Mailing List > Subject: Need help in declaring resource file > > Hi, > I am trying a sample struts application. My > struts-config.xml is like this- > > <struts-config> > <form-beans><form-bean name="logonForm" > type="app.LogonForm"/> </form-beans> > <global-forwards> > <forward name="logon" > path="/pages/logon.jsp"/> > </global-forwards> > > <action path="/LogonSubmit" > type="app.LogonAction" > name="logonForm" > scope="request" > validate="true" > input="/pages/logon.jsp"> > > <forward name="success" > path="/pages/welcome.jsp"/> > </action> > </action-mappings> > > <!-- message configuration --> > <message-resources > parameter="resources.MessageResources" /> > > </struts-config> > > > I am getting exception on server like > Parse Error at line 54 column 65: Element type > "message-resources" must be declared. > org.xml.sax.SAXParseException: Element type > "message-resources" must be declared. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error > HandlerWrapper.java:232) > at > org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav > a:173) > > > Parse Error at line 59 column 17: The content of > element type "struts-config" must match > "(data-sources?,form-beans?,global-forwards?,action-mappings?)". > org.xml.sax.SAXParseException: The content of > element > type "struts-config" must match > "(data-sources?,form-beans?,global-forwards?,action-mappings?)". > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error > HandlerWrapper.java:232) > at > org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav > a:173) > at > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav > a:371) > > > > Can anybody help me about it. > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]