RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Martin Cooper
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

RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Ajay Chitre
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

RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Chang, Henrique
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

RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Galbreath, Mark
<% 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,