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.
c:if test='${ requestScope[org.apache.struts.action.ERROR] ne null }'
..
/c:if
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 logic:messagesPresent tag only
checked for messages (obvious I suppose).
It seems to me that the abscence of an
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.
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
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
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 html:errors will display anything
6 matches
Mail list logo