dynamically generating content from an ASP page:

I read in a magazine an article that talked about running an IIS-based website (which does this) from ASP pages. It is about URL rewriting. I drew out a small diagram of this for myself and my question is

Does this only work with IIS? Also any Java info about such a thing I would like to know.