Re: Struts2.x ActionError And ActionMessage

2017-11-17 Thread Lukasz Lenart
2017-11-16 16:15 GMT+01:00 Dhulipudi, Sivannarayana : > Hi All, > > I tried to use struts 2.x ActionError and ActonMessage classes to do > validations. > > I saw a lot examples on internet, in those examples adding errors and > messages to actionsupport class like > > addActionErrors() and addA

AW: Struts2.x ActionError And ActionMessage

2017-11-17 Thread Christoph.Nenning
ursday, November 16, 2017 9:28 AM > To: 'Struts Users Mailing List' > Subject: RE: Struts2.x ActionError And ActionMessage > > ActionError and ActionMessage are not classes you can utilize stand alone. > Calling addActionError() is actually building a List in the action and >

Re: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Yasser Zamani
On 11/17/2017 9:12 AM, Yasser Zamani wrote: > Hello Dhulipudi, Welcome! > > Could you try below please > > ActionSupport myCurrentActionSupport = (ActionSupport) > ActionContext.getContext().getValueStack().peek(); > > myCurrentActionSupport.addActionError("my error"); Please remember if

Re: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Yasser Zamani
On 11/16/2017 8:09 PM, Dhulipudi, Sivannarayana wrote: > when ever validation failed, I want to create one action error message and > keep that action error in context Hello Dhulipudi, Welcome! Could you try below please ActionSupport myCurrentActionSupport = (ActionSupport) ActionContex

RE: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Paul Zepernick
] Sent: Thursday, November 16, 2017 11:39 AM To: Struts Users Mailing List Subject: RE: Struts2.x ActionError And ActionMessage Actually we are using Apache commons validation frame work along with struts, when ever validation failed, I want to create one action error message and keep that action

RE: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Dhulipudi, Sivannarayana
[paul.zepern...@healthsmart.com] Sent: Thursday, November 16, 2017 9:28 AM To: 'Struts Users Mailing List' Subject: RE: Struts2.x ActionError And ActionMessage ActionError and ActionMessage are not classes you can utilize stand alone. Calling addActionError() is actually building a L

RE: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Paul Zepernick
: Struts2.x ActionError And ActionMessage Hi Siva, Can you share an example of what you’re doing and what’s not working? thanks, adam -- _ Adam Brin Director of Technology, Digital Antiquity 480.965.1278 > On Nov 16, 2017, at 8:15

Re: Struts2.x ActionError And ActionMessage

2017-11-16 Thread Adam Brin
Hi Siva, Can you share an example of what you’re doing and what’s not working? thanks, adam -- _ Adam Brin Director of Technology, Digital Antiquity 480.965.1278 > On Nov 16, 2017, at 8:15 AM, Dhulipudi, Sivannarayana > wrote: > > Hi

Struts2.x ActionError And ActionMessage

2017-11-16 Thread Dhulipudi, Sivannarayana
Hi All, I tried to use struts 2.x ActionError and ActonMessage classes to do validations. I saw a lot examples on internet, in those examples adding errors and messages to actionsupport class like addActionErrors() and addActionMessage(). but I want to use ActionError and ActionMessage cla