🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #410

Re: ReferrURL\RedirectPage

#410
From: Paul Nichols [TeamB]
Date: Fri, 22 Jul 2005 15:03
33 lines
2746 bytes
"Jeff" <jbarr62307@worldnet.att.net> wrote in message
news:42d9b99c$1@newsgroups.borland.com...
> Paul:
>
> The java web application was purchased by my client from another
> company.  I am new to java so I am trying to figure out the best
> approach for this. As fae as I can tell there is not any servelts with
> the application.  Currently I have a login page on an ASP.NET site where
> I validate the users login\password and if they are valid, I call the
> index page page of the java web app.  Everything is working, but we need
> to allow the java web site to be opened only from the ASP.NET page.  Any
> suggestions?
>
I would do this only via a POST method in your form, or by encoding a
C#/VB.NET (or whatever)
request method (something akin to RequestDispatcher in Java), and pass a
param to the Java page that must be in some type of valid range. If it is
invalid (aka because the page attempt access was outside the parameter),
then throw a page inmforming user of invalid access.

Of course another way is to have the .NET app write to a file somewhere and
place a value into the file. Modify the Java app to look for this file or a
setting in this file. If the value is absent (say a SessionID), then the
Java page will not be opened and an access denied page displayed instead,
informing the user they must login.

Of course, if you really want to get fancy, you could pass an Ajax request
from Java Script as an XML file to the Java app, and check for the value. Or
use a Web Service, etc.

The easiest method would be suggestion one and two above. Of these the file
method would be the most secure.
Technical Details
Message-ID: <42e10ad6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!feeder.xsnews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42d557d1@newsgroups.borland.com> <42d7d31b@newsgroups.borland.com> <42d9b99c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,215d784cd5bad332
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Paul Nichols [TeamB]" <paul@comp.net>
From: "Paul Nichols [TeamB]" <paul@comp.net>
Newsgroups: borland.public.jbuilder.java.language
References: <42d557d1@newsgroups.borland.com> <42d7d31b@newsgroups.borland.com> <42d9b99c$1@newsgroups.borland.com>
Subject: Re: ReferrURL\RedirectPage
Date: Fri, 22 Jul 2005 10:03:49 -0500
Lines: 35
Organization: paul@comp.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 66.20.208.2
Message-ID: <42e10ad6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1122044630 66.20.208.2 (22 Jul 2005 08:03:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!feeder.xsnews.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail