Prozac
Blues

Down & Brown
since 1998

ASP.NET Request and Response

There are obviously going to be some differences in the way ASP.NET handles the way you pass around objects as opposed to Java. One of the things I like about the servlet model is the way you call your useBeans from the presentation layer. The useBeans are attached to the Response object - this is obviously very nifty and a handy way to do things.

There doesn't appear to be a way for me to add things to the Response object in the same way using ASP.NET. The HttpContext.Session object allows you to add things. I'm just not sure how 'smart' this is... I mean, obviously you can do it whether or not it's 'smart' to solve the problem in this way... I don't know.

I also like that by adding things to the Response object in Java you know that they are designed to persist for the lifetime of that the response. In ASP.NET, if I'm shoving things in the Session object, they're gonna need a little bit of management since they'll persist for the entire lifetime of the session. That could be problematic... hence the concern about this not being a smart idea.