473,786 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "incorporat e" a JSP page within an ASP.net page?
How does security come into play here?
Nov 19 '05 #1
3 1349
> 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 "incorporat e" 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 "incorporat e" 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
4142
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 javascript, I get an "error on page" warning and the page is not displayed. I suppose that when Internet Explorer discovers a <script> tag he starts to interpret it. This is not what I want. After all Internet Explorer is a browser and not an...
10
4198
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 DB as formatted HTML so ASP just drops them right into a page shell. Now, we want to send out a newsletter email containing some of those items. No problem sending as HTML. However, some of the members want just plain text. Is there some magic...
14
6905
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 HTML doc. The HTML version doesn't have anything fancy, just internal links. So the tool must be able to delete internal links and anchors from the HTML version, but leave external links in simplified form. That is, the HTML version would say <a...
2
1800
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 as text/html. (This works fine in Mozilla, though.) I thought maybe IE would use the file extension as a guide, but it doesn't seem to work. I tried mapping the .txt extension in IIS so it is parsed by the .net framework, then setting up an...
3
7323
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 tab-delimited text. If I set Response.ContentType="plain/text", the format is fine, but an Open/Save dialog will appear on the IE6 browser, which I don't want. If don't set the ContentType at all, the dialog goes away, but the browser removes the...
8
3058
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 elements such as this <BR> within the plain text. Is there a way to filter them or to simply download the page as plain text? any help would be greatly appreciated.
10
3522
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 Response Headers - http://www.hixie.ch/advocacy/xhtml Date: Wed, 23 Nov 2005 21:36:06 GMT Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e Vary: Accept-Encoding,User-agent
7
1730
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 including via SSI a plain text fixed width table (separated by spaces) which of course gets treated as html when doing that. I would like to have the blanks (and line returns) stay in the file and then I could use courier new to display it properly. I
3
13942
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, EventArgs e) { Response.ContentType = "text/plain"; Response.Write("help"); }
3
1589
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 Code-Behind for each page? The website is a mockup in plain HTML so there is no database hooked up yet. I'm assuming plain HTML elements like input text boxes can easily be replaced using the Visual Studio Designer.
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8989
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6745
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
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 we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.