473,406 Members | 2,369 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,406 software developers and data experts.

plain JSP in a ASP.NET page

ok, I'm very new to ASP, but familiar with .NET via forms. My company has a
fairly large JSP web site, and long term they want to convert it to ASP.net
because of various reasons. Anyway, short term, they want to "transition"
to ASP.net, which means make the main pages .aspx, somehow incorporate the
jsp pages within the ASP pages, and begin gradually converting the jsp pages
to ASP pages. So to start out with, there would be 25% ASP and 75% JSP and
then eventually it would be 100% ASP (maybe a year from now).
Question: Is it possible to "incorporate" a JSP page within an ASP.net page?
How does security come into play here?
Nov 19 '05 #1
3 1334
> fairly large JSP web site, and long term they want to convert it to
ASP.net Are you in Ontario? I have a lot of jsp experience but am now moving to C#
too! :> I much prefer doing work in C#/.NET than anything java.
Question: Is it possible to "incorporate" a JSP page within an ASP.net
page? There isn't anything AFAIK that will get IIS natively to understand JSPs.
However, what you could do, is setup IIS to forward JSP requests to your JSP
server (Apache, Tomcat?), and setup your transition strategy to convert the
lowest pages (or the highest) to ASPX. If you do a mix (pages in the middle
of your website) then passing off of variables can get complicated (if you
use the URL there's the 2k limit for one, security for another :<). Also
calling servlets from ASPX can be done, getting session variables I don't
think can be done. From the other side, you won't be able to have your JSP
pages responding to button clicks natively.

So, IMHO one strategy would be to have your website go through IIS, and have
a solid transition and variable passing strategy. Passing variables in a
session won't work, so either you setup something custom or use the
url/querystring. Just some thoughts.
How does security come into play here?

It's different in .net 1.1 and 2.0, and very different from JSP security. :<
I hate JSP security. I believe .net 2.0 is going the java way, but I'm sure
there will be MUCH better docs for it.

Good luck.
Nov 19 '05 #2
What do you mean by "the lowest pages"? Thanks for the great advice. And
no, I'm not in Ontrario, sorry.

"Flip" wrote:
fairly large JSP web site, and long term they want to convert it to
ASP.net

Are you in Ontario? I have a lot of jsp experience but am now moving to C#
too! :> I much prefer doing work in C#/.NET than anything java.
Question: Is it possible to "incorporate" a JSP page within an ASP.net
page?

There isn't anything AFAIK that will get IIS natively to understand JSPs.
However, what you could do, is setup IIS to forward JSP requests to your JSP
server (Apache, Tomcat?), and setup your transition strategy to convert the
lowest pages (or the highest) to ASPX. If you do a mix (pages in the middle
of your website) then passing off of variables can get complicated (if you
use the URL there's the 2k limit for one, security for another :<). Also
calling servlets from ASPX can be done, getting session variables I don't
think can be done. From the other side, you won't be able to have your JSP
pages responding to button clicks natively.

So, IMHO one strategy would be to have your website go through IIS, and have
a solid transition and variable passing strategy. Passing variables in a
session won't work, so either you setup something custom or use the
url/querystring. Just some thoughts.
How does security come into play here?

It's different in .net 1.1 and 2.0, and very different from JSP security. :<
I hate JSP security. I believe .net 2.0 is going the java way, but I'm sure
there will be MUCH better docs for it.

Good luck.

Nov 19 '05 #3
> What do you mean by "the lowest pages"? Thanks for the great advice.
And Sorry for the confusion. I meant if you were to have the index.jsp as the
top of the tree, and the rest of your jsp pages fanning down out from there.
So then, pick on leaf/jsp, and start working upwards with new aspx pages.
That way, you can handle isolated jsps and their associated servlets one at
a time. When you convert the jsp to aspx, you can write the button handlers
as well (to replace the servlets). That way, you would only ever be
bridging one jsp to aspx gap at any one time and hopefully you can do this
with the querystring (url) or maybe even with your db. The bad thing is
you'll always be doing that bridge from jsp to aspx until you complete the
whole app. What's another way? Take one entire sub tree and convert it to
aspx, but from the top level (index.jsp I assume) you're starting with a
jsp, so either way, you're going to have this issue to contend with

After thinking about it a bit, the first thing to handle is probably taking
a look at some global utilities and maybe your data layer and convert that
stuff over first. Are you using an Oracle or MS db? Are you using EJBs?
Custom tags? What about a lot of utility/static methods/classes? You might
be able to get away with moving those bigger pieces over to .net code when
you run into them.
no, I'm not in Ontrario, sorry.

Too bad. :< Oh well, c'est la vie I guess. Good luck! :>
Nov 19 '05 #4

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

Similar topics

4
by: hoke | last post by:
I want to display plain text files in the browser. The files contain html and javascript and have a .txt extension. This works fine with files with just html. Unfortunately when showing files with...
10
by: J. Alan Rueckgauer | last post by:
Hello. I'm looking for a simple way to do the following: We have a database that serves-up content to a website. Some of those items are events, some are news articles. They're stored in the...
14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
2
by: Mike Bridge | last post by:
Is there any way to get Internet explorer to treat a text/plain .net page as plain text using asp.net? It seems like IE doesn't trust text/plain as a mime type, and so it (ironically) displays it...
3
by: MarkMurphy | last post by:
I have a simple export.aspx page that allows a user to fill in a form to export some data. The postback logic writes the data to the response stream. I have two small issues: 1) The data is...
8
by: Doominato | last post by:
good day, I was just wondering how can I download a web page as plain text from a certain web site. I have tried to use the OpenURL() method from INET control in my VB.NET app, but it returns...
10
by: Eric Lindsay | last post by:
This may be too far off topic, however I was looking at this page http://www.hixie.ch/advocacy/xhtml about XHTML problems by Ian Hickson. It is served as text/plain, according to Firefox...
7
by: toby989 | last post by:
Hi All Sorry for reposting...the entries of the post from 11/23/2005 by Eric Lindsay have been removed from the server already and I am seeing only the header. So, I have the problem of...
3
by: letuce dance | last post by:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender,...
3
by: Frank | last post by:
Hi, Just wondering how much pain is involved in taking an existing website created with Dreamweaver (mostly just plain HTML + some javascript) then converting each page to ASP.NET with...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.