struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nat...@esha.com>
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
2.3)
> 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
nathan@esha.com


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message