Hi, I´ve tried answering the following question via the user-list twice and I have not yet received the solution that I am looking for. I´ve been on this for quite some time now and cannot get it to work!
Basically, I want to pass ActionMessages to my JSP using the methods and classes provided by struts. Here is the code in my Action: ActionMessages messages = new ActionMessages(); ActionMessage newMessage = new ActionMessage("from.my.resourcebundle.text"); messages.add("key.I.pass.to.jsp", newMessage); saveMessages(request, messages); // I also tried saving it directly //request.setAttribute(Action.MESSAGE_KEY, messages); Now in my JSP I would have the following: <html:messages id="message" message="true"> <bean:write name="message"/> <!-- Can I set the property I want? i.e. property="key.I.pass.to.jsp" --> </html:messages> Whenever I put this code into my JSP however, I get the error: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:386) at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.j ava:229) at org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:25 3) Any help on this matter would be very much appreciated because I really need to get this working! Regards, Michael -- To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>