Are you using the request dispatcher to pass the servlet request to the jsp?
I do this all the time, setAttribute in the servlet (controller), call
forward() to forward the request to the jsp, and do request.getAttribute().
Servlet:
RequestDispatcher rd;
req.setAttribute("attr1", "hello");
rd = getServletContext().getRequestDispatcher("jsp/MyJsp.jsp");
rd.forward(req, res);
MyJsp.jsp:
<%= request.getAttribute("attr1")%>
HTH,
Bill Pfeiffer
----- Original Message -----
From: "Harding, David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 01, 2000 1:10 PM
Subject: How do you pass data from a servlet to a jsp page?
> is there some undocumented trick to this?
>
> i tried it and it does not work.
>
> i get Attribute <att_name> does not have a value errors when i am sure
that
> i called setAttribute in the servlet with a valid value.
>
> why am i getting this error?
>
> cheers,
> david j harding
>