To display the messages
use
<c

ut value="${message}"/>
instead of
<bean:write name="message" />
I hope you are using jstl tags
Else use this also in your jso
<%@ taglib uri="jstl/c" prefix="c" %>
and
<taglib>
<taglib-uri>jstl/c</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
in web.xml