Fog Creek Software
g
Discussion Board




C# 'Servlet Engine'

I like the C# Language because it's well designed, and .NET because it's well supported on Windows and available on Unix-like systems (courtesy of Mono).

I like the Java Servlet Specification (I don't care for the other server-side Java standards) because it's neat, efficient, simple, gives me maximum flexibility.

Does anyone know of a Servlet-like specification or engine for server-side development with C# or .NET?

Seun Osewa
Sunday, February 29, 2004

I'm not a Java expert by any stretch, but I imagine that what you want to do is write classes that implement IHttpHandler, and then hook them up to URLs using Web.config.

Brad Wilson (dotnetguy.techieswithcats.com)
Sunday, February 29, 2004

I also think that would be the way to do it, but how is that different from having an aspx file "without" gui?

Thomas Eyde
Sunday, February 29, 2004

The fact that you don't have to deploy an ASPX file, basically.

Brad Wilson (dotnetguy.techieswithcats.com)
Sunday, February 29, 2004

You don't have to deploy .aspx files anyway.

You can write a handler to examine all incoming requests (for a given extension), then get it to hand off to a single "point of entry" that can yield the desired result, based upon the input parameters.

I believe that Joel's FogBUGZ works (indirectly) in a similar way, as everything is done via "default.asp".

Don't know what you'd call it technically, but to me it sounds like a listener/dispatcher.

Steve Jones (UK)
Monday, March 1, 2004

Is it easier to not deploy an aspx file than to add the handler wiring to web.config? It's a one time action, anyway.

Thomas Eyde
Monday, March 1, 2004

The ASPX file will be compiled, pointlessly, and the resulting output buffer will be need to be cleared, pointlessly. If the end user deletes or mucks with the ASPX file (a real possibility if you're selling the application), they will also cause trouble.

In short, yes, sometimes it's worth it to modify the Web.config and leave the ASPX file out of it.

Brad Wilson (dotnetguy.techieswithcats.com)
Monday, March 1, 2004

Oh, plus, pages aren't reusable. You can design stateless handlers that can be reused.

Brad Wilson (dotnetguy.techieswithcats.com)
Monday, March 1, 2004

*  Recent Topics

*  Fog Creek Home