pajarokillo
Programmer
Hi!, my problem is the following, i want to save a ActionMessages object in the session object and then to display it in my JSP, how i can do it?, thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ActionMessages messages = new ActionMessages();
messages.add("statusMessage", new ActionMessage("message.key"));
saveMessages(request.getSession(), messages);
// you can save it to request too if you don't need to the message to appear in subsequence page
// saveMessages(request, messages);
<logic:messagesPresent message="true">
<html:messages id="message" message="true" property="statusMessage">
<bean:write name="message"/>
</html:messages>
</logic:messagesPresent>