Hi,
Thanks for the friendly piece of advice, I did correct it and changed the
dtd from 1.0 to 1.1 and I got no errors now., ?But I have gotten into this
problem....
this is the data inside my ApplicationResources.properties file present inside
the classes directory.
/**************ApplicationResources.properties
file*******************************/
button.save=Change name
button.reset=Reset
error.name.required=To change the name, a name must be entered
prompt.name=Enter name:
welcome.title=A Simple Application
/**************ApplicationResources.properties
file*******************************/
On the index.jsp page that is being displayed.....
The values of the welcome.title, prompt.name , error.name.required ,
button.reset , button.save are not being displayed,
instead I am getting like this
???en_US.welcome.title???
???en_US.error.name.required???
........and so on.
What could be the problem, it not reading the ApplicationResources.properties
file.
Help would be greatly appreciated.
Thanks
AS
???en_US.
----- Original Message -----
From: [EMAIL PROTECTED]
To: "Struts Users Mailing List" <[email protected]>
Subject: Re: Still PLZ Help with Cannot find message resources under key
org.apache.struts.action.MESSAGE
Date: Thu, 13 Jan 2005 09:58:25 -0500
>
>
> Your first issue is a result of your second. The XML parser is
> telling you that
> your format did not match the DTD. In the config, the elements must be in the
> order of
>
> 1. data-sources
> 2. form-beans
> 3. global-forwards
> 4. action-mappings
> 5. messages and plugins.
>
> for instance I have.
>
> <!-- Data Sources -->
> <data-sources />
>
> <!-- Global Exceptions -->
> <form-beans>
> ...
> </form-beans>
>
> <!-- Global Forwards -->
> <global-forwards>
> ...
> </global-forwards>
>
> <!-- Action Mappings -->
> <action-mappings>
> ...
> </action-mappings>
>
> <!-- Message Resources -->
> <message-resources parameter="com.llic.web.ApplicationResources" />
>
> <!-- Validator Plug-in -->
> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> <set-property property="pathnames" value=
> "/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
> </plug-in>
>
>
> Hope that helps.
>
> Todd
>
>
> |---------+---------------------------->
> | | "Avinash Sridhar"|
> | | <[EMAIL PROTECTED]|
> | | .com> |
> | | |
> | | 01/13/2005 09:26 |
> | | AM |
> | | Please respond to|
> | | "Struts Users |
> | | Mailing List" |
> | | |
> |---------+---------------------------->
>
>
> >-------------------------------------------------------------------------------------------------------------------------------|
> |
> |
> | To: "Struts Users Mailing List"
> <[email protected]>
> |
> | cc:
> |
> | Subject: Still PLZ Help with Cannot find message
> resources under key org.apache.struts.action.MESSAGE
> |
>
>
> >-------------------------------------------------------------------------------------------------------------------------------|
>
>
>
>
> Hi,
>
> Thanks for the suggestions....After I add
>
> <message-resources
> parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
> null="false" />
>
> to the struts-config.xml file, When I start-up the server, I get the following
> error message....
>
> /******Error*******/
>
> Element type "message-resources" must be declared.
>
> AND
>
>
> The content of element type "struts-config" must match
> "(data-sources?,form-beans?,global-forwards?,action-mappings?)".
>
> /******Error*******/
>
> Help towards this wud be greatly appreciated.
>
> Thanking you
> AS
>
>
> ----- Original Message -----
> From: "David G. Friedman" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[email protected]>
> Subject: RE: PLZ Help with Cannot find message resources under key
> org.apache.struts.action.
> Date: Thu, 13 Jan 2005 00:34:55 -0500
>
> >
> > To your struts-config.xml, have you added an entry something like this:
> >
> > <message-resources
> > parameter="com.masslight.StrutsExampleClasses.ApplicationResources"
> > null="false" />
> >
> > Regards,
> > David
> >
> > -----Original Message-----
> > From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 12, 2005 10:01 PM
> > To: [email protected]
> > Subject: PLZ Help with Cannot find message resources under key
> > org.apache.struts.action.
> >
> >
> > Hi All,
> > This is my directory structure
> > WEB-INF i have struts-config.xml and web.xml
> > WEB_INF classes / com / masslight / StrutsExampleClasses/
> > ApplicationResources.properties
> > Name.java
> > NameForm.java
> > SetNameAction.java files
> >
> > /***********Error ******/
> >
> > Cannot find message resources under key org.apache.struts.action.MESSAGE
> >
> > /***********Error ******/
> >
> > Kindly help me out with this
> >
> > PS: I am using Tomcat 5.0.28, Eclipse 3.0 Struts 1.2.4.
> >
> > Any Help would be greatly appreciated.......
> >
> > I can give you the trace of the log files too.
> >
> > Thanks in advance
> > AS
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> ___________________________________________________________
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
>
>
> ---------------------------------------------------------------------
> 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]
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]