You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mohammed Zabin <jo...@gmail.com> on 2007/07/23 12:40:18 UTC
Tags and Servlets
Hi all
I am trying to pass an object from a tag to a servlet. i did the following,
1. In the tag class, i put:
pageContext.getRequest().setAttribute("QList", list);
The above Tag will go to a servlet, i need to read the above request
attribute in the servlet, how can i do this?, i tried
List<Integer> list = (List<Integer>)request.getAttribute("QList");
, but when i tried to access the read list, it gave me NullPointerException,
any help please
Jotnarta