printing message from servlet to jsp

Hi there;I want to add validation error messages in servlet and forward it to jsp form page backward...How is it possible?By the way adding it to request is ok but can i add a hashmap object into request object?thank you
[248 byte] By [netsonicca] at [2007-11-26 15:02:53]
# 1

It's simple, use a JSTL+Servlet approach as shown as following article:

http://avatar21.superihost.com/index.php?entry=entry070114-070222

here's how you do it in the JSTL:

<c:if test="${not empty sessionScope['messageQ']}">

<c:forEach var="customMessage" items="${sessionScope['messageQ']}">

<c:out value="${customMessage}"/>

</c:forEach>

</c:if>

Hope this help!

Regards,

Avatar Ng

Message was edited by:

Avatar_Ng

Avatar_Nga at 2007-7-8 8:52:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...