473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

I come from a Java background - so i have just one lame question :

DAn
Hi,

I would like to know if there is a C# version of a servlet, or of J2EE
equivalent.

If not how do i write in C# a small "servlet" that simply parses some HTML
code into text, that in turn interfaces with a database, does the .NET
platform support these operations, or is there a special version like J2EE ?

Thanks,
dan
Nov 17 '05 #1
6 1165
I think you need to start looking at web services.

"DAn" wrote:
Hi,

I would like to know if there is a C# version of a servlet, or of J2EE
equivalent.

If not how do i write in C# a small "servlet" that simply parses some HTML
code into text, that in turn interfaces with a database, does the .NET
platform support these operations, or is there a special version like J2EE ?

Thanks,
dan

Nov 17 '05 #2
surely better is possible in .NET :)

U can use web services as previous post indicates. But my advice u to use
COM+ objects which supports transaction security etc...
Or u can use Web Service Enhancement(WSE), which has both's advantages...

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"DAn" <DA*@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
Hi,

I would like to know if there is a C# version of a servlet, or of J2EE
equivalent.

If not how do i write in C# a small "servlet" that simply parses some HTML
code into text, that in turn interfaces with a database, does the .NET
platform support these operations, or is there a special version like J2EE
?

Thanks,
dan

Nov 17 '05 #3
Joe
asp.net is the .Net attempt of servlets, aka JSP pages.

But, even though I really love C# and .Net desktop winforms apps, if I have
to do web apps I stick to Java.

There is a namespace in .net; System.EnterpriseServices, That has some
transaction / queue (J2EE) stuff.
For object persistence you need to go non-ms at the moment, I use developers
express XPO objects. MS efforts in this are seemed to have been stalled,
but was known as 'object spaces'.

It really is a different world though - have fun learning / playing with
..net web stuff, but stick to java for paying clients.
"DAn" <DA*@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
Hi,

I would like to know if there is a C# version of a servlet, or of J2EE
equivalent.

If not how do i write in C# a small "servlet" that simply parses some HTML
code into text, that in turn interfaces with a database, does the .NET
platform support these operations, or is there a special version like J2EE
?

Thanks,
dan

Nov 17 '05 #4
Joe <Jo*@microsoft.com> wrote:
asp.net is the .Net attempt of servlets, aka JSP pages.


There's a big difference between servlets and JSP pages. ASP.NET is
similar (in many ways) to JSPs, but servlets are a much lower level
construct, and don't assume that you're using HTML. (Heck, servlets
themselves don't even have to be HttpServlets, although most certainly
are.) There are various situations where you might want to use servlets
but the idea of a "page" isn't really appropriate - you can easily use
them for a primitive kind of web service, for example.

Unfortunately I haven't seen anything particularly close to bare
servlets in the .NET world, although I believe .NET 2.0 makes it
easier.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #5
"Jon Skeet [C# MVP]" wrote:
Joe <Jo*@microsoft.com> wrote:
asp.net is the .Net attempt of servlets, aka JSP pages.
There's a big difference between servlets and JSP pages. ASP.NET is
similar (in many ways) to JSPs, but servlets are a much lower level
construct, and don't assume that you're using HTML. (Heck, servlets
themselves don't even have to be HttpServlets, although most certainly
are.) There are various situations where you might want to use servlets
but the idea of a "page" isn't really appropriate - you can easily use
them for a primitive kind of web service, for example.

Unfortunately I haven't seen anything particularly close to bare
servlets in the .NET world, although I believe .NET 2.0 makes it
easier.


although in this case, you can implement a custom IHttpHandler that is the
equivalent of HttpServlet (I think, don't know much about java).
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #6
Daniel Jin <Da*******@discussions.microsoft.com> wrote:
Unfortunately I haven't seen anything particularly close to bare
servlets in the .NET world, although I believe .NET 2.0 makes it
easier.


although in this case, you can implement a custom IHttpHandler that is the
equivalent of HttpServlet (I think, don't know much about java).


Yes, I suspect that's about right - it's the kind of thing that's a bit
of a pain to set up, I suspect, as it's rarely done :(

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #7

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

Similar topics

54
by: Spammay Blockay | last post by:
I've been tasked with doing technical interviews at my company, and I have generally ask a range of OO, Java, and "good programming technique" concepts. However, one of my favorite exercises I...
467
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
4
by: SoulSniper | last post by:
Hi, I have been stuck on this for a few days now and have given up trawling through pages and pages of google results.. I'm just putting the finishing touches to a small game I've written....
25
by: wee | last post by:
I've been using Java for a few years now and am just amazed at how many new "technologies" or tools come out all the time (i.e., Struts, Java Server Faces, JMeter, jad, etc.). It is nigh impossible...
3
by: moondaddy | last post by:
I have some text in a page that when a certain even happens, I need to make it glow from black to red (through a spand of 1 second) pause for a few seconds, and then slowly change from red to black...
25
by: redefined.horizons | last post by:
I've traditionally been a Java developer, although I play around with LISP. I recently migrated to Linux and I was exploring Mono as an option for development on Linux. However, I've had some...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
0
by: shaolinman829 | last post by:
My collegue and I are at the point of pulling our hair out. I'm currently writting a little piece of Java code to send an email confirmation page that sends both html and text. Not a problem. In my...
156
by: Lame Duck | last post by:
Hi Group! I have a vector<floatvariable that I need to pass to a function, but the function takes a float * arguement. That's OK, I can convert by doing &MyVector.front(), but when I get back a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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...

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.