This won't work. You will still get the same compile error message.
- boon -----Original Message----- From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 2:42 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: dynamic bean message Hi, request.getAttribute("status") return an Object and message tag need a String, perhaps you need to cast to String like that: <bean:message key="<%= String.valueOf(request.getAttribute("status")) %>"/> Boon Chew <[EMAIL PROTECTED]> a �crit : I searched on the archive and didn't find an question similar to this... What I am trying to achieve is when the action servlet is done its job it would forward to a generic JSP page that will show the appropriate message to the user. For example, at the end of the action servlet, // save the message resource key request.setAttribute("status", "status.success"); return (mapping.findForward("message")); And in message.jsp, I tried doing this in hope of display different message depending on what is being set in the status attribute. " /> The above line won't work. It seems like doing a JSP expression within a tag is not allowed...is there another way or a better way to achieve this? - boon -- To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------- Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en fran�ais ! -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

