473,473 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Java Servlet counterpart in .Net?

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

Dec 1 '06 #1
3 2714
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" <ch*************@univativ.dewrote in message
news:eI******************@fe188.usenetserver.com.. .
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


Dec 1 '06 #2
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_****@timney.eclipse.co.ukschrieb im Newsbeitrag
news:IO******************************@eclipse.net. uk...
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" <ch*************@univativ.dewrote in message
news:eI******************@fe188.usenetserver.com.. .
>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




Dec 1 '06 #3
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" <ch*************@univativ.dewrote in message
news:XW****************@fe30.usenetserver.com...
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_****@timney.eclipse.co.ukschrieb im Newsbeitrag
news:IO******************************@eclipse.net. uk...
>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" <ch*************@univativ.dewrote in message
news:eI******************@fe188.usenetserver.com. ..
>>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





Dec 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
3
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
0
by: bruce mcdonald | last post by:
I am creating an extension in java for my style sheet. I want to return a series of nodes containing dynamic data from an extension function. At the top of the style sheet I have ...
0
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
6
oll3i
by: oll3i | last post by:
when i run my jsp file i get an error SEVERE: Servlet.service() for servlet jsp threw exception java.util.MissingResourceException: Can't find bundle for base name MessagesBundle, locale pl_PL...
2
by: vijaykumardahiya | last post by:
Hello Sir, I have a simple Issue but It is not resolve by me i.e input parameter are not store in Ms-Access. I store the input parameter through Standard Action <jsp:useBean>. jsp:useBean call a...
7
by: swethak | last post by:
Hi, i have a command to convert the video file into image ffmpeg -i sample.wmv -f image2 -t 0.001 -ss 3 ss.jpg i run that one in command prompt it converted the video file into...
2
by: ramprakashjava | last post by:
This is index.jsp page code: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.