I dont think that there is a limit...  One thing I did notice was that 
you named your directory labone.i18n, instead of having it as 
labone/i18n...  I am not sure if that could have been causing your 
problem.

No problem on the help...  Just giving back to the list...


-----Original Message-----
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 5:17 PM
To: Chmura, William B.
Subject: RE: <html:errors/> not displaying message?


Should've read the rest of your message, the part where you changed the
<message-resources> ....

I made the same change, and lo and behold!, it worked.  Strange.  I 
would
think that you could put the ApplicationResources.properties file at any
directory level provide you pointed to it correctly with the
<message-resources>.  I didn't think there was a limit to the depth that 
you
could put these files.  I know that commons-logging and log4j properties
files have to be at the highest level in the class structure, but I 
didn't
think that applied to ApplicationResources.....

Thanks for your help!  Let me know if there is ever anything I can do 
for
you.....

Jerry

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: RE: <html:errors/> not displaying message?
> 
> 
> 
> Okay...
> 
> I have it working on Tomcat 4.0.3
> 
> All i did was copy your properties file over to the 
> testProject/classes/com/labone directory
> 
> I changed the message resources to this...
> 
> <message-resources parameter="com.labone.ApplicationResources" 
> null="false" />
> 
> 
> It worked
> 
> 
> -----Original Message-----
> From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 4:17 PM
> To: Chmura, William B.
> Subject: RE: <html:errors/> not displaying message?
> 
> 
> WB,
> 
> I've packaged the app and attached it - can you take a quick 
> look at see 
> if
> I'm missing something that is so obvious that I can't see it? 
>  I've been
> over this so many times I'm starting to get a headache....
> 
> Thanks!
> 
> Jerry
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 3:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: <html:errors/> not displaying message?
> > 
> > 
> > 
> > I am not sure how all of that works, but I have a feeling 
> > that its okay 
> > that way.  When I had the problem it was 
> > showing the same thing.  
> > 
> > Are you ABSOLUTELY sure the properties file is named right 
> and is in 
> > your classes directory (not in your source if you have 
> one)?  Can you 
> > put a copy in the classes directory and remove the package off the 
> > resource tag and try it for hahas.
> > 
> > The only reason I ask is that everytime - EVERYTIME - I have 
> > a problem 
> > with this it turns out to be something stupid I did and am 
> > overlooking 
> > (like a bad filename or putting it somewhere else or a 
> hundred other 
> > things).
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 3:52 PM
> > To: struts-user
> > Subject: RE: <html:errors/> not displaying message?
> > 
> > 
> > I agree, it appears that the key is not being found.  The 
> ActionForm 
> > adds
> > the message like this:
> > 
> >     errors.add("userID", new ActionError("error.bad.userid"));
> > 
> > In my ApplicationResources.properties, I have 
> > 
> >     errors.header=
> >     errors.footer=
> >     errors.prefix=
> >     errors.suffix=
> > 
> >     error.bad.userid = Unknown User ID!!!!
> > 
> > What concerns(?) me is that the error that is being display 
> > has the key
> > listed as en_US.error.bad.userid.  This indicates to me that it is 
> > looking
> > for an ApplicationResources_en.properties - not the default
> > ApplicationResources.properties....  In fact, I think I'll 
> > try to add an
> > 'english' version of the file and see what happens.....
> > 
> > jerry
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 20, 2002 2:54 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: <html:errors/> not displaying message?
> > > 
> > > 
> > > The ?? Show that its not being found - within the ?? is the 
> > kjey its 
> > > looking for...
> > > 
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: kkamholz [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 20, 2002 3:44 PM
> > > To: struts-user
> > > Subject: RE: <html:errors/> not displaying message?
> > > 
> > > 
> > > The question marks MIGHT be displayed because you don't have 
> > > errors.prefix
> > > or errors.suffix defined.  I think the errors tag uses those 
> > > when you're
> > > displaying errors by property.  I'm not sure though, so 
> > > hopefully one of 
> > > the
> > > guru's will chime in and tell us how stupid we are, hahaha.
> > > 
> > > ~ Keith
> > > http://www.buffalo.edu/~kkamholz
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 20, 2002 3:36 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: <html:errors/> not displaying message?
> > > 
> > > 
> > > Well, that's just it.  I don't remember either, and can't see 
> > > to find it 
> > > in
> > > the DTD (old age / bad eyes?).  I tried Sri's suggestion of using 
> > > <html:html
> > > locale="true">  but it didn't seem to help (I don't 
> usually use the
> > > <html:html> tags).  I mean, this is so basic its 
> embarassing, but I 
> > > can't
> > > seem to get the da*n error message to display, at least the 
> > > way I want 
> > > it.
> > > I'm now (still) getting ???en_US.error.bad.userid???  - kinda 
> > > worthless, 
> > > ya
> > > know?
> > > 
> > > Jerry
> > > 
> > > > -----Original Message-----
> > > > From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, August 20, 2002 2:29 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: <html:errors/> not displaying message?
> > > > 
> > > > 
> > > > Would it go in the message-resources tag in your 
> > > struts-config.xml?  I
> > > > haven't done it, but i think i remember seeing that on 
> this list.
> > > > 
> > > > ~ Keith
> > > > http://www.buffalo.edu/~kkamholz
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, August 20, 2002 3:23 PM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: RE: <html:errors/> not displaying message?
> > > > 
> > > > 
> > > > Checked.....  it's there.  I seem to remember a post sometime 
> > > > ago about
> > > > having to specify locale= , but can't seem to remember where 
> > > > it needs to be
> > > > coded.  I went to check the archives about an hour ago and 
> > > > couldn't get into
> > > > 'em.  Anybody else remember something about this?
> > > > 
> > > > Jerry
> > > > 
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, August 20, 2002 2:28 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: <html:errors/> not displaying message?
> > > > > 
> > > > > 
> > > > > Could just not be finding your properties file...
> > > > > 
> > > > > Should be in: 
> > > > > /classes/com/labone/Messages/ApplicationResources.properties
> > > > > 
> > > > > 
> > > > > 
> > > > > -----Original Message-----
> > > > > From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, August 20, 2002 3:02 PM
> > > > > To: struts-user
> > > > > Subject: RE: <html:errors/> not displaying message?
> > > > > 
> > > > > 
> > > > > OK, should've caught that one.  Also had a 
> finger-check in the 
> > > > > ActionForm
> > > > > where I'm setting the error message.  Fixed 'em both.  Now 
> > > > > I'm getting a
> > > > > message on the logon.jsp, but it looks like this:
> > > > > 
> > > > >               ???en_US.error.bad.userid??? 
> > > > > 
> > > > > I'm guessing it has something to do with 
> localization?  Ideas? 
> > > > > 
> > > > > Jerry
> > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Kamholz, Keith (corp-staff) USX 
> > [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Tuesday, August 20, 2002 1:44 PM
> > > > > > To: 'Struts Users Mailing List'
> > > > > > Subject: RE: <html:errors/> not displaying message?
> > > > > > 
> > > > > > 
> > > > > > For your <html:errors/> tag, don't specify the name 
> > > > > > attribute.  Specify the
> > > > > > property attribute instead.  It would look like:
> > > > > > <html:errors property="userID" />
> > > > > > 
> > > > > > I hope this helps ya out.
> > > > > > 
> > > > > > ~ Keith
> > > > > > http://www.buffalo.edu/~kkamholz
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Tuesday, August 20, 2002 2:41 PM
> > > > > > To: '[EMAIL PROTECTED]'
> > > > > > Subject: <html:errors/> not displaying message?
> > > > > > 
> > > > > > 
> > > > > > I'm putting together a very basic, sample application for 
> > > > > > some training
> > > > > > purposes using Struts 1.1b2.  In testing the app, I cannot 
> > > > > > seem to get an
> > > > > > error message from an ActionForm to display on the 
> jsp.  Can 
> > > > > > someone see
> > > > > > what the heck I'm doing wrong?
> > > > > > 
> > > > > > struts-config.xml
> > > > > > 
> > > > > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > > > > <!DOCTYPE struts-config PUBLIC "-//Apache Software 
> > > > > > Foundation//DTD Struts
> > > > > > Configuration 1.1//EN"
> > > > > > 
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> > > > > > 
> > > > > > <struts-config>
> > > > > > 
> > > > > >     <form-beans>
> > > > > >             <form-bean name="LogonBean"
> > > > > > type="com.labone.LogonBean" />
> > > > > >     </form-beans>
> > > > > >     
> > > > > >     <action-mappings>
> > > > > >             <action path="/LogonAction"
> > > > > > type="com.labone.LogonAction"
> > > > > >                             name="LogonBean"
> > > > > >                             input="/logon.jsp"
> > > > > >                             scope="request"
> > > > > >                             validate="true">
> > > > > >                     <forward name="OK"      
> > > path="/display.jsp" />
> > > > > >                     <forward name="NOK"     
> > > path="/logon.jsp" />
> > > > > >             </action>
> > > > > >     </action-mappings>
> > > > > >     
> > > > > >     <message-resources
> > > > > > parameter="com.labone.Messages.ApplicationResources" />
> > > > > >     
> > > > > > </struts-config>
> > > > > > 
> > > > > > LogonBean.java
> > > > > > 
> > > > > > package com.labone;
> > > > > > 
> > > > > > import javax.servlet.http.HttpServletRequest;
> > > > > > 
> > > > > > import org.apache.struts.action.ActionError;
> > > > > > import org.apache.struts.action.ActionErrors;
> > > > > > import org.apache.struts.action.ActionForm;
> > > > > > import org.apache.struts.action.ActionMapping;
> > > > > > 
> > > > > > public class LogonBean extends ActionForm
> > > > > > {
> > > > > >     private String userID;
> > > > > >     
> > > > > >     public LogonBean()
> > > > > >     {
> > > > > >             this.userID = "";
> > > > > >     }
> > > > > >     
> > > > > >     public String getUserID()
> > > > > >     {
> > > > > >             return this.userID;
> > > > > >     }
> > > > > >     
> > > > > >     public void setUserID(String userID)
> > > > > >     {
> > > > > >             this.userID = userID;
> > > > > >     }
> > > > > >     
> > > > > >     public ActionErrors validate(ActionMapping mapping,
> > > > > > HttpServletRequest request)
> > > > > >     {
> > > > > >             ActionErrors errors = new ActionErrors();
> > > > > >             
> > > > > >             if ((!userID.equals ("Jerry")) && 
> > > > > > (!userID.equals ("Qing")))
> > > > > >             {
> > > > > >                     
> > > errors.add(ActionErrors.GLOBAL_ERROR, new
> > > > > > ActionError("userID", "error.bad.userid"));
> > > > > >             }
> > > > > > 
> > > > > >             return errors;
> > > > > >     }
> > > > > > }
> > > > > > 
> > > > > > ApplicationResources.properties
> > > > > > 
> > > > > > errors.header=
> > > > > > errors.footer=
> > > > > > 
> > > > > > error.bad.userid = Unknown User ID!!!!
> > > > > > 
> > > > > > logon.jsp
> > > > > > 
> > > > > > <%@ taglib uri="/bean"              prefix="bean"   
> >     %>
> > > > > > <%@ taglib uri="/display"   prefix="display"        %>
> > > > > > <%@ taglib uri="/html"              prefix="html"   
> >     %>
> > > > > > <%@ taglib uri="/logic"             prefix="logic"  
> >     %>
> > > > > > <%@ taglib uri="/nested"    prefix="nested" %>
> > > > > > <%@ taglib uri="/tiles"             prefix="tiles"  
> >     %>
> > > > > > 
> > > > > > <html>
> > > > > >     <head>
> > > > > >             <title>This is a test web application</title>
> > > > > >     </head>
> > > > > >     <body>
> > > > > >             <table border=0>
> > > > > >                     <html:form action="LogonAction.do" 
> > > > > > method="POST">
> > > > > >                     <tr>
> > > > > >                             <td>
> > > > > >                                     User ID:
> > > > > >                             </td>
> > > > > >                             <td>
> > > > > >                                     <html:text 
> > > maxlength="10"
> > > > > > property="userID" size="10" />
> > > > > >                             </td>
> > > > > >                             <td>
> > > > > >                                     <html:errors 
> > > name="userID"/>
> > > > > >                             </td>
> > > > > >                     </tr>
> > > > > >                     <tr>
> > > > > >                             <td colspan=3>
> > > > > >                                     <html:submit/>
> > > > > >                             </td>
> > > > > >                     </tr>
> > > > > >                     </html:form>
> > > > > >             </table>
> > > > > >     </body>
> > > > > > </html>
> > > > > > 
> > > > > > 
> > > > > > Aughhhhhhhhhh!
> > > > > > 
> > > > > >     
> > > > > > 
> > > > > > Jerry Jalenak
> > > > > > Web Publishing
> > > > > > LabOne, Inc.
> > > > > > 10101 Renner Blvd.
> > > > > > Lenexa, KS  66219
> > > > > > (913) 577-1496
> > > > > > [EMAIL PROTECTED]
> > > > > > 
> > > > > > 
> > > > > > This transmission (and any information attached to 
> it) may be 
> > > > > > confidential
> > > > > > and is intended solely for the use of the individual or 
> > > > > > entity to which it
> > > > > > is addressed. If you are not the intended recipient or 
> > > the person
> > > > > > responsible for delivering the transmission to the intended 
> > > > > > recipient, be
> > > > > > advised that you have received this transmission in 
> error and 
> > > > > > that any use,
> > > > > > dissemination, forwarding, printing, or copying of this 
> > > > > information is
> > > > > > strictly prohibited. If you have received this transmission 
> > > > > > in error, please
> > > > > > immediately notify LabOne at (800)388-4675.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe, e-mail:
> > > > > > <mailto:[EMAIL PROTECTED]>
> > > > > > For additional commands, e-mail:
> > > > > > <mailto:[EMAIL PROTECTED]>
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe, e-mail:   
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail:
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > 
> > > > > 
> > > > > This transmission (and any information attached to it) may be 
> > > > > confidential and is intended solely for the use of the 
> > > > individual or 
> > > > > entity to which it is addressed. If you are not the intended 
> > > > > recipient 
> > > > > or the person responsible for delivering the 
> > transmission to the 
> > > > > intended recipient, be advised that you have received this 
> > > > > transmission 
> > > > > in error and that any use, dissemination, forwarding, 
> > > printing, or 
> > > > > copying of this information is strictly prohibited. If you 
> > > > > have received 
> > > > > this transmission in error, please immediately notify 
> LabOne at 
> > > > > (800)388-4675.
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe, e-mail:   
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail: 
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe, e-mail:   
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail: 
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > 
> > > > > 
> > > > 
> > > > This transmission (and any information attached to it) may be 
> > > > confidential
> > > > and is intended solely for the use of the individual or 
> > > > entity to which it
> > > > is addressed. If you are not the intended recipient or 
> the person
> > > > responsible for delivering the transmission to the intended 
> > > > recipient, be
> > > > advised that you have received this transmission in error and 
> > > > that any use,
> > > > dissemination, forwarding, printing, or copying of this 
> > > information is
> > > > strictly prohibited. If you have received this transmission 
> > > > in error, please
> > > > immediately notify LabOne at (800)388-4675.
> > > > 
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: 
> > > > <mailto:[EMAIL PROTECTED]>
> > > > 
> > > > 
> > > 
> > > This transmission (and any information attached to it) may be 
> > > confidential
> > > and is intended solely for the use of the individual or 
> > > entity to which 
> > > it
> > > is addressed. If you are not the intended recipient or the person
> > > responsible for delivering the transmission to the intended 
> > > recipient, 
> > > be
> > > advised that you have received this transmission in error and 
> > > that any 
> > > use,
> > > dissemination, forwarding, printing, or copying of this 
> > information is
> > > strictly prohibited. If you have received this transmission 
> > in error, 
> > > please
> > > immediately notify LabOne at (800)388-4675.
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: 
> > > <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: 
> > > <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > 
> > This transmission (and any information attached to it) may be 
> > confidential and is intended solely for the use of the 
> individual or 
> > entity to which it is addressed. If you are not the intended 
> > recipient 
> > or the person responsible for delivering the transmission to the 
> > intended recipient, be advised that you have received this 
> > transmission 
> > in error and that any use, dissemination, forwarding, printing, or 
> > copying of this information is strictly prohibited. If you 
> > have received 
> > this transmission in error, please immediately notify LabOne at 
> > (800)388-4675.
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is addressed. If you are not the intended 
> recipient 
> or the person responsible for delivering the transmission to the 
> intended recipient, be advised that you have received this 
> transmission 
> in error and that any use, dissemination, forwarding, printing, or 
> copying of this information is strictly prohibited. If you 
> have received 
> this transmission in error, please immediately notify LabOne at 
> (800)388-4675.
> 
> 
> 

This transmission (and any information attached to it) may be 
confidential and is intended solely for the use of the individual or 
entity to which it is addressed. If you are not the intended recipient 
or the person responsible for delivering the transmission to the 
intended recipient, be advised that you have received this transmission 
in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received 
this transmission in error, please immediately notify LabOne at 
(800)388-4675.




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to