Hey Swapnil
Check the resource Folder path, I think it must be in the dir structure
as Web project folder/Java Resource Folder/package folder(optional)
/resources/...files
In struts conf file would be as
<message-resources parameter="package
path[optional].resources.ApplicationResources"/>
I think its works fine,try it.
Good luck Bye.......
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]