Re: how to check if html:errors will display anything

2004-06-10 Thread James Neville
Much better, good one Rick. Thanks everyone. James. Rick Reumann wrote: Would this work for you with JSTL? You probably want to throw in a test for not empty also. .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: how to check if html:errors will display anything

2004-06-09 Thread Rick Reumann
James Neville wrote: Well, I was using this tag earlier in the week. (We've been trying to stay away from any Struts specific tags until recently too - we're locked in now anyway, so we might as well). Would this work for you with JSTL? You probably want to throw in a test for not empty also.

RE: how to check if html:errors will display anything

2004-06-09 Thread James Neville
iour, but to no avail. I think i'll grab the logic tag source and work out what is *actually* happening here ;) Cheers, James. -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Sent: Wed 6/9/2004 7:18 AM To: Struts Users Mailing List Cc: Subject:Re: ho

Re: how to check if html:errors will display anything

2004-06-08 Thread Riyad Kalla
James, I can relate completely to the desire to not have scriplets.. However today is your lucky day, because logic:messagesPresent's defintiion is to actually check for ActionMessages, ActionErrors and a few other things, def: "Evaluates the nested body content of this tag if an ActionMessages o

Re: how to check if html:errors will display anything

2004-06-08 Thread James Neville
Funny you bring this up, as our gfx guy here would like the same thing. It did in fact confuse me for ages why on earth errors wern't being displayed, until I realised that tag only checked for messages (obvious I suppose). It seems to me that the abscence of an accompanying tag is an oversigh

Re: how to check if html:errors will display anything

2004-06-07 Thread Dan Tran
Barnett, take a look at html:errors tag source to see how it generates html, then you know what to do. -D - Original Message - From: "Barnett, Brian W." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 6:05 PM Subject: how to check if ht

Re: how to check if html:errors will display anything

2004-06-07 Thread Riyad Kalla
Great question, I solved this by checking if Globals.ERROR_KEY was null or not, but I still wanted something more, because I set aside a small margin in the top of my page for global errors, like System errors... and I only wanted to display the margin IF there were some ActionMessages.GLOBAL_M

how to check if html:errors will display anything

2004-06-07 Thread Barnett, Brian W.
How can I check if the html:errors tag will display anything down inside my jsp page? I have the html:errors tag inside a table tag and I don't want the table generated at all if there aren't any errors to display. Thanks, Brian Barnett