wood burning stoves 2.0*
The moose likes Servlets and the fly likes Pass parameters to ASP on IIS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Pass parameters to ASP on IIS" Watch "Pass parameters to ASP on IIS" New topic
Author

Pass parameters to ASP on IIS

Ashraf Fouad
Ranch Hand

Joined: Oct 07, 2001
Posts: 80
Dear all,
I have an application that is running on WebSphere AppServer 3.5.6, I already implemented the part of getting user & password as login page, but the customer wants to have this directly from the logged user.
I know it is an option on IE with IIS, so we thought of making an ASP application on IIS, so that my application whenever it needs login, it passes the parameters that is sent to it ( which is dynamic ) to the IIS, that will get the user name & encrypt it - I already got an encryption algorthim - and pass the same parameters to my application again, so that it decrypt the name and create a session then proceed with the sent parameters.
I want to know an easy way to pass parameters to the ASP application using "POST", u can suggest any component, I want to pass all the requested data, so that the client is redirected to the IIS machine so the login user can be taken and then passed.
Any suggestion
thankx in advance


Ashraf Fouad
SCJP 1.2, SCBCD 5
James Hobson
Ranch Hand

Joined: Aug 28, 2001
Posts: 140
Hi,
This is really an ASP (and/or a IIS/IE question), so I doubt if you will get any helpful replies on a Java Servlet forum.
I would recomend that you look at web application security as implemented by WebSphere -- it will probably help you to understand your problem, and give you some ideas on how to implement something in JSP.
I expect that integrating IIS and ASP into a pure Java system will be far more effort, and give you a less reliable system than using what WebSphere gives you out-of-the-box.
If you really want to use ASP, then you probably need to find an ASP forum, rather than a Servlet forum.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
In order to create a POST from a servlet to another server, you need to create a URL that starts with "http://" - when you do a URL openConnection, what you get back is a HttpURLConnection. This has the methods needed to create a set of headers and includes the method setRequestMethod("POST");
Read more in the java.net package ....
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass parameters to ASP on IIS