> I'd prefer to use request attributes. If the data were
> suitable for storage in the session, I doubt Phil would
> have called them "local". -- Sebastian
-- more specifically, you can use the request.getAttribute() and
request.setAttribute() methods to put and retrieve objects into the request
scope. For example, on a self posting form, you might have a servlet handle
validation and then send a vector of errors to the jsp to display. In the
servlet, you'd do something like this:
request.setAttribute("errors", v);
where 'v' is a Vector object. Then in your JSP, you could use syntax like
this:
<jsp:useBean id="errors" scope="request" class="java.util.Vector" />
to retrieve the Vector from the request scope.
hth,
AJ
Aaron Johnson
[EMAIL PROTECTED]
http://cephas.net/blog/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=8
Get the JRun Web Application Construction Kit - the only book written specifically for
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion