You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joao Batistella <jo...@ptinovacao.pt> on 2004/03/17 21:59:15 UTC

Testing a GLOBAL_ERROR

I'm trying to test if I got an Global Error with the following code in my
JSP:

<logic:present name="org.apache.struts.action.ERROR"
property="org.apache.struts.action.GLOBAL_ERROR">
	test
</logic:present>

Is this correct? This does not print the test and I'm sure I have a Global
Error?

Thanks

Re: Testing a GLOBAL_ERROR

Posted by atta-ur rehman <at...@numetrics.com>.
You might want to try <logic:messagesPresent> tag instead.

ATTA

----- Original Message ----- 
From: "Joao Batistella" <jo...@ptinovacao.pt>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Wednesday, March 17, 2004 12:59 PM
Subject: Testing a GLOBAL_ERROR


> I'm trying to test if I got an Global Error with the following code in my
> JSP:
>
> <logic:present name="org.apache.struts.action.ERROR"
> property="org.apache.struts.action.GLOBAL_ERROR">
> test
> </logic:present>
>
> Is this correct? This does not print the test and I'm sure I have a Global
> Error?
>
> Thanks
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org