I want to display a message on a jsp as a result of a user logging on.
I do a saveMessages() in my Action class then forward to my jsp.
Nothing is displayed. Can anyone see what I am doing wrong?
Thanks, Patrick
In my Action class:
ActionMessage msg = new
ActionMessage("status.welcome", username);
ActionMessages msgs = new ActionMessages();
msgs.add("status", msg);
saveMessages(request, msgs);
In the resulting jsp:
<html:messages property="status" id="m"></html:messages>
Struts-config :
<!-- Process a user logon -->
<action path="/SubmitLogon"
type="net.pwb.web.actions.LogonAction"
input="/WEB-INF/forms/logon.jsp"
name="LogonForm"
scope="session">
<forward name="failure" path="/Logon.do" redirect="true"/>
<forward name="success" path="/welcome.jsp" />