Re: Java Servlet counterpart in .Net?



Another alternative is to create your asp.net applications through
Grasshopper, which will compile them to run on java implementations like
Apache.
http://dev.mainsoft.com/Default.aspx?tabid=239

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog


"Christofer Dutz" <christofer.dutz@xxxxxxxxxxx> wrote in message
news:XWSbh.3310$Hs.2435@xxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am trying to completely separate Url and File structure. I was just
using JSPs and Servlets as examples, because of their behaviour concerning
Url handling. Basically I want to create an application framework with
wich I can create a web application and decide if I will deploy it on Java
or .Net without this decision having effect on the code.

I found out about these HTTPModules and HTTPHandlers and am having a look
at them now.

Tanks to you all.

Chris



"John Timney (MVP)" <x_john@xxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:IOidnQ3VadNWavLYnZ2dnUVZ8sudnZ2d@xxxxxxxxxxxxxxxxx
ASP.NET and JSP are not that well connected at a conceptual level and
there really isn't a direct equivalent to a servlet, you can probably
equate asp.net and ihttpmodules/handlers to the classic jsp/servlet model
in the scenario you describe below, but you'd be coding asp.net like JSP.

The closest you probably have to a true servlet is the code behind model
but only if you try and code it like a servlet, embedding html type
responses into it for example, which is not the most appropriate use of
the technology. The front controller model your probably eluding too
isn't heavily used in asp.net.

--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog


"Christofer Dutz" <christofer.dutz@xxxxxxxxxxx> wrote in message
news:eIRbh.12556$1D6.5634@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am thinking about migrating an application of mine to .Net and have
run into this small "problem"
At the moment I would generally compare ASP.Net to JSPs in the Java
world. I know that this might not be 100% correct, but as far as
addressing a page from the browser it is. The real-path of an ASP.Net
Site is equal to the url-path. I would like to register a comonent as
listener for an entire portion of the url. For example let all urls
starting with http://hostname/app1/shop be handled by a servlet-like
component.

Ist there a way to do this and if yes - what do I have to do?

Regards,
Chris









.



Relevant Pages

  • Re: Calling C# dll from java applications
    ... heres a starter for 10 ... John Timney (MVP) ... Anybody experimented calling C# components from java applications? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Client-Server to Web App
    ... it possible to keep a connection open to the C++ server between ... The downside is if the C/C++ server side piece is not thread safe. ... Below is a Java ... If you called this class from a standard Java Servlet, for instance, since ...
    (borland.public.delphi.non-technical)
  • Re: Velocity
    ... > If he asks me to go deep into java, there is something I need to know. ... suggest "Java Servlet Programming" by Jason Hunter, ... Finally, if you're going to do any Struts programming at all, ... you should seriously consider installing an IDE such as Eclipse ...
    (comp.lang.java.programmer)
  • Re: Servlet To Java Application Communication
    ... I would like to write a Java servlet that it will be able to ... way to communicate with a servlet. ... probably know you should encode the request XML in the body part of a POST ... and expect the response XML in the response content. ...
    (comp.lang.java.databases)
  • Re: Setting up a Java development environment the debian way.
    ... the static typing in Java is acknowledged as one of the ... "generics" as provided in Java 1.5+ then this problem is resolved. ... typed language can be very useful. ... The servlet spec was always a nicer beast, ...
    (Debian-User)