Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Antonio Petrelli
2008/3/19, Chen Chunwei <[EMAIL PROTECTED]>:
> Hi all,
>
>  Can anyone tell me that the real value of constant 
> ActionErrors.GLOBAL_ERROR? Or where to find it?
>  Actually, I want to use the tag  to only display the error 
> defined with ActionErrors.GLOBAL_ERROR.

You don't need it! Read the taglibdoc:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/errors.html

At the "name" attribute, it says:
Name of the bean (in any scope) under which our error messages have
been stored. If not present, the name specified by the
Globals.ERROR_KEY constant string will be used.

HTH
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Chen Chunwei
Thanks all.

I found the problem.
Actually, the tag  can display any ActionError found. But I 
confused my ApplicationResources.properties file, that is, the error I want to 
display was not defined in that file. So it will never be displayed until being 
defined.

Further more, I don't need to know the actual value of 
ActionErrors.GLOBAL_ERROR. Because I can just use it also in my jsp file. To do 
this, just add a line with  in the header of the jsp file. 
Then I can use the expression <%=ActionErrors.GLOBAL_ERROR %> to get the value 
of ActionErrors.GLOBAL_ERROR.

I knew this is simple but I'm new to both JSP and STRUTS.

Talos


- Original Message - 
From: "Lukasz Lenart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, March 19, 2008 3:16 PM
Subject: Re: About ActionErrors.GLOBAL_ERROR


Hi,

Maybe something like this:




  

  







  

  






  
  

  

  
  




Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Lukasz Lenart
Hi,

Maybe something like this:




  

  







  

  






  
  

  

  
  




Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About ActionErrors.GLOBAL_ERROR

2008-03-18 Thread Chen Chunwei
Thanks David

But I still don't know which value should I set for name property of 
, that is, which value should I fill xxx in  ?

Talos


- Original Message - 
From: "David Chapman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, March 19, 2008 11:36 AM
Subject: Re: About ActionErrors.GLOBAL_ERROR


My first reply to mailing list. Be gentle :) *

ActionErrors.GLOBAL_ERROR* is deprecated.

Use *ActionMessages.GLOBAL_MESSAGE* instead.

From ActionMessages.java ...

*public static final String GLOBAL_MESSAGE =
"org.apache.struts.action.GLOBAL_MESSAGE";**
*
djc

On Tue, Mar 18, 2008 at 8:06 PM, Chen Chunwei <
[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Can anyone tell me that the real value of constant
> ActionErrors.GLOBAL_ERROR? Or where to find it?
> Actually, I want to use the tag  to only display the error
> defined with ActionErrors.GLOBAL_ERROR.
>
> I have the struts javadoc api, but I cannot access the Internet.
>
> Thanks.


Re: About ActionErrors.GLOBAL_ERROR

2008-03-18 Thread David Chapman
My first reply to mailing list. Be gentle :) *

ActionErrors.GLOBAL_ERROR* is deprecated.

Use *ActionMessages.GLOBAL_MESSAGE* instead.

>From ActionMessages.java ...

*public static final String GLOBAL_MESSAGE =
"org.apache.struts.action.GLOBAL_MESSAGE";**
*
djc

On Tue, Mar 18, 2008 at 8:06 PM, Chen Chunwei <
[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Can anyone tell me that the real value of constant
> ActionErrors.GLOBAL_ERROR? Or where to find it?
> Actually, I want to use the tag  to only display the error
> defined with ActionErrors.GLOBAL_ERROR.
>
> I have the struts javadoc api, but I cannot access the Internet.
>
> Thanks.


About ActionErrors.GLOBAL_ERROR

2008-03-18 Thread Chen Chunwei
Hi all,

Can anyone tell me that the real value of constant ActionErrors.GLOBAL_ERROR? 
Or where to find it?
Actually, I want to use the tag  to only display the error 
defined with ActionErrors.GLOBAL_ERROR.

I have the struts javadoc api, but I cannot access the Internet.

Thanks.