Where is your bean:write statement in the html:messages JSP tag? **** But the real reason is your redirect="true". You save the messages to the request scope but the redirect="true" forces the client to invoke a NEW request (losing all the old messages) to get to the /Logon.do action.
Try changing it to redirect="false" and specifying the JSP instead of an action (or the controller will reprocess everything when it tried to internally go to /Logon.do and could result in the errors talked about in the last few days on this list). Regards, David -----Original Message----- From: Patrick Beagan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 1:39 PM To: [EMAIL PROTECTED] Subject: newbie question - can't get message to display 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" /> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]