struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <>
Subject Re: The RequestUtils interface
Date Mon, 03 Feb 2003 02:14:22 GMT
David said:
> I've always been a little unclear about what RequestUtils' role should be.
> Passing in the ServletContext is redundant because (at least in servlet
> you can get the session from the request and the ServletContext from the
> session.

But what do you do if you need the ServletContext but no session exists for
the request?  Do you want the RequestUtils to be responsible for creating a
session?  I'm not sure I like that.  I think it's fine to pass the
ServletContext as well as the request.

Nathan Bubna

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message