Forum Moderators: open

Message Too Old, No Replies

ASP.NET and JSP on same website?

         

King_Sniffy

3:47 am on Jan 28, 2004 (gmt 0)

10+ Year Member



Does anyone know if it's possible to run ASP.NET (or classic ASP) and JSP on same website? Say - if the file requested is an .aspx, it'll be interpreted by .NET, or if it's a JSP, by jakarta-tomcat (or whatever...)

we're currently running an ASP.NET site, and my boss has asked me to check out the feasibility of this 3rd party reporting product that uses JSP for some of it's reports.

thoughts?

txbakers

4:00 am on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can run both on the same server, however, one needs to run on port 80, the other on an alternate port. Tomcat by default installs on 8080 I believe.

The two will not be able to interact or pass session information back and forth.

If you needed to pass information it would have to be with queryStrings or Forms posted.

Why, though, do you need both technologies? You can do everything in either of them. JSP is great, ASP.NET is great too.

King_Sniffy

4:35 am on Jan 28, 2004 (gmt 0)

10+ Year Member



thanks, that was fast!

ok, so i could have a directory in our existing webroot somewhere containing all the jsp stuff (just to keep it physically separate) and link to it from my asp.net pages?

the reason i'd like to run both (actually, i'd rather not run both) is because i'm already very familiar with asp.net, this jsp reporting product is just a 3rd party system that our company is interested in. i wouldn't be developing any of it, just installing it and linking to it from our existing site.

anyway, i've had some (admittedly very limited) experience with jsp, and it just doesn't seem as attractive as asp.net for various reasons which i won't go into here...

txbakers

6:07 am on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you could have separate directories, but JSP is much more complicated to install and configure than IIS. And your links would need to be full path links (not relative) since you would need to come in under a different port.

HOWEVER, there is a nifty isapi filter which will allow JSP and ASP to both run under port 80. You'd still need to link to a full path though, since the domain names would have to be different.

Well, they are both attractive. I've worked in both. I always thought .NET was a ripoff of JSP but they both get you where you want to go.

Which reporting tool are you considering? If it's Actuate, that will also run in .NET, it doesn't have to be JSP.

Also, if you are considering Actuate, please sticky me. I'm kind of an expert in it and can answer any questions you might have.

King_Sniffy

6:25 am on Jan 28, 2004 (gmt 0)

10+ Year Member



hmm, sounds like a bit of a hassle. the reporting product we're looking at (being talked into) is www.CorVu.com, but i'll take a look at Actuate as well.

King_Sniffy

6:28 am on Jan 28, 2004 (gmt 0)

10+ Year Member



actually, the thing about CorVu are the KPI/Balanced Scorecard features. We work with a lot of hospitals in ths area, so it's very attractive to my collegues.

Xoc

4:33 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't see why they can't coexist on port 80. In IIS Manager Properties ¦ Home Directory ¦ Configuration dialog, there is a list of file extensions and the application that is responsible for serving those file extensions. If .aspx is mapped to .net and .jsp is mapped to tomcat, they should coexist fine, as long as there is no overlap of extensions.

Installing tomcat could mess up some of these for IIS, but they could be restored by hand.

txbakers

5:39 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When a port 80 HTTP request comes to IIS it looks for the host headers or IP address to find the correct directory to serve pages.

IIS does the HTML or ASP translating because of the mapped dlls. When a jsp comes in, it needs to find Tomcat to process since IIS can't process jsp extensions.

I've been in this situation before and the two are like oil and water.

The only solution I've found to running JSP on an IIS server on port 80 is with the ISAPI_REDIRECT.dll filter and a bunch of registry entries. I have a zip file with the instructions if you want them. Can we send attachments in sticky mail?

Even still, the two cannot share information other than through regular HTML form submissions.

King_Sniffy

10:00 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



I'd love to see those instructions if you can swing it.

King_Sniffy

10:57 pm on Jan 28, 2004 (gmt 0)

10+ Year Member



actually, although those instructions would be really good to see, i wouldn't be able implement them without running a dedicated server, which isn't part of the plan at this stage.

does anyone know of an australian webhost that i can run ASP.NET and JSP/servlets out of the same account?

seems like a big ask...

txbakers

12:55 am on Jan 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you'd need your own server for sure to do something like this. It would need modifying the registry and installing isapi filters.

King_Sniffy

1:01 am on Jan 29, 2004 (gmt 0)

10+ Year Member



i thought as much.

thanks for all your help.