You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manuel Lenz <Lz...@viessmann.com> on 2003/07/17 10:42:24 UTC

Backen Error Messages

Hi to all,
in struts I only know the error-construct from actionClass:
errors.add("error", new ActionError("foo.message3"));

But i don´t want to show a message form
ApplicationRessources.properties-File.
I get error messages from a Backen-System and I want to show these Messages
on the jsp-Site.
How can I fill the errors-Object with these values.

Greetings,
Manuel Lenz



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


Re: Backen Error Messages

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
struts always gets the action error from app resources.
lets assume u have
error.sample={0} 
in ur application resources 

and 

errors.add("error", new ActionError("error.sample","<%= back_end_message %>
));

-- nagi


-------Original Message-------

From: Struts Users Mailing List
Date: Thursday, July 17, 2003 02:27:23 PM
To: Struts Users Mailing List
Subject: Backen Error Messages

Hi to all,
in struts I only know the error-construct from actionClass:
errors.add("error", new ActionError("foo.message3"));

But i don´t want to show a message form
ApplicationRessources.properties-File.
I get error messages from a Backen-System and I want to show these Messages
on the jsp-Site.
How can I fill the errors-Object with these values.

Greetings,
Manuel Lenz



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


.

Re: Backen Error Messages

Posted by Sandeep Takhar <sa...@yahoo.com>.
I believe you need a standard

backEndError = {0}

and just replace it with the text that you have.

sandeep
--- Manuel Lenz <Lz...@viessmann.com> wrote:
> 
> Hi to all,
> in struts I only know the error-construct from
> actionClass:
> errors.add("error", new
> ActionError("foo.message3"));
> 
> But i don�t want to show a message form
> ApplicationRessources.properties-File.
> I get error messages from a Backen-System and I want
> to show these Messages
> on the jsp-Site.
> How can I fill the errors-Object with these values.
> 
> Greetings,
> Manuel Lenz
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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