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) 
ActionContext.getContext().getValueStack().peek();

myCurrentActionSupport.addActionError("my error");

>  and display error message in jsp page

<s:actionerror/> <!-- in your jsp -->

Regards,
Yasser.

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

Reply via email to