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 object, ActionErrors object, a String, or a String array is in request scope. If such a bean is not found, nothing will be rendered."
from here: http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent so it seems that does what you need it to? On Tue, 08 Jun 2004 12:21:35 +0100, James Neville <[EMAIL PROTECTED]> wrote: > > 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 accompanying <html:errorsPresent> > tag is an oversight; or was there a particular reason for it? > > Riyad Kalla wrote: > > > > > However if you just want to check for any errors at all, this should > > do the trick: > > <logic:notEmpty name="<%= Globals.ERROR_KEY %>"> > > </logic:notEmpty> > > Good suggestion, but after all the pain i've gone through to get rid of > scriptlets (as simple as the above might be), I just couldn't bear doing > this to my pages ;) > > Cheers > > James. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]