Or, without scriptlets:
// Display your errors here
--
Martin Cooper
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 2:06 PM
> To: 'Struts Users Mailing List'
> Subject: RE: html:errors ActionError
I have no idea if this is the best way to do this but I *believe* this
will work;
Object value = pageContext.getAttribute
(Action.ERROR_KEY, PageContext.REQUEST_SCOPE);
if (value == null) {
//No errors found
} else {
//Errors encountered
}
I don't think there's any tag f
Thanks, this is what I was looking for!
Henrique.
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 5:06 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors ActionErrors accessible as scripting variable?
<%
Ac
<%
ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY);
boolean err = false;
if( ae != null) { err = true; }
%>
<%
if( err) { do_something }
%>
Mark (back from Amsterdam)
-Original Message-
From: Chang, Henrique [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15,
4 matches
Mail list logo