What is the correct syntax for removing ActionMessages from the session context?

Showing Answers 1 - 7 of 7 Answers

Sp

  • Jul 18th, 2006
 

as per my best knowledge ActionMessages/ActionErrors are stored in request scope

  Was this answer useful?  Yes

Ajit

  • Apr 4th, 2007
 

Yes Sp is right, and the statement to store the save ActionMessages is

ActionMessages am = new ActionMessages();
saveMessages(request, actionMessages);

  Was this answer useful?  Yes

As the ActionMessages represent the error scenarios for the current request, they must be stored in request scope not in session scope. hence no way of thinking of removing action messages from session scope.

Mahes

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions