Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
Hey your welcome. Niall - Original Message - From: "Nimmons, Buster" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 10:48 PM Subject: RE: using multiple error messages > That was it...

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
ailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 9:59 PM Subject: RE: using multiple error messages > here is the snippet of code which produces the ActionErrors object > > Long id = new Long(System.currentTimeMillis()); > ActionErrors errors = new

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
27;" <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 9:59 PM Subject: RE: using multiple error messages > here is the snippet of code which produces the ActionErrors object > > Long id = new Long(System.currentTimeMillis()); > ActionErrors errors = new

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
ge- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 3:56 PM To: Struts Users Mailing List Subject: Re: using multiple error messages Well, works for me and dubugging your stuff without seeing your code is difficult. Niall - Original Message - From: "

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
Well, works for me and dubugging your stuff without seeing your code is difficult. Niall - Original Message - From: "Nimmons, Buster" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 9:44 PM

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
I do in fact have and on the page to test for the existence of errors and it does display the errors -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 3:44 PM To: Struts Users Mailing List Subject: Re: using multiple error messages It only

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
ers Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 8:02 PM Subject: RE: using multiple error messages > The code suggested below seems to work as far as displaying the appropriate > header message if errors are present but none of the actual error messages

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
: Struts Users Mailing List Subject: Re: using multiple error messages By default it looks for action errors under the same key as does (Globals.ERROR_KEY) or you can specify a message="true" attribute which causes it to look under the Globals.MESSAGE_KEY instead, or you can specify your ow

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
n is saved as so I > don't know what to specify in the id attribute.. Does struts define a > constant somewhere defining the bean id > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 11, 2004 10:39 AM > To: Struts Users Ma

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
> Sent: Tuesday, May 11, 2004 4:54 PM Subject: RE: validwhen validation > what do I specify as the id to iterate over the ActionErrors in the page > scope > - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" &l

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
where defining the bean id -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 10:39 AM To: Struts Users Mailing List Subject: Re: using multiple error messages The tag does exactly what you want - you can specify the header/footer/suffix/pref

Re: using multiple error messages

2004-05-11 Thread Niall Pemberton
The tag does exactly what you want - you can specify the header/footer/suffix/prefix as attributes on the tag: http://jakarta.apache.org/struts/userGuide/struts-html.html#messages Niall - Original Message - From: "Nimmons, Buster" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

RE: using multiple error messages

2004-05-11 Thread Nimmons, Buster
That's what I was figuring I was going to have to do but I just wanted to make sure there was not a more intuitive way... Thanks -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 8:10 AM To: Struts Users Mailing List Subject: RE: using mul

RE: using multiple error messages

2004-05-11 Thread Daniel Perry
Not sure if there is a better way of doing this, but my suggestion would be have no error.header entry, and instead have: error.systemheader error.applicationerror with the two entries you gave, and always add one of those to the error list first. Daniel. -Original Message- From: Nimmon