Solved

Front end to an ASP server using Java to replace web browser

Posted on 2001-06-27
4
197 Views
Last Modified: 2010-03-31
Hi

I'm wanting to create a front end to an ASP 'server' using Java. The ASP server has a web browser as a client but I want to by-pass this and create a Java front end for testing purposes .... I want to know if this is possible and what is best to use ... could I use a servlet or something???

In summing up, is there something in Java that can behave like a web browser for me, I want to replace the webBrowser with a Java front end for testing the ASP?

If the ASP uses cookies and sessions will a Java front end be able to support this?


Thanks
Scott01
0
Comment
Question by:scott01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:mattyk
ID: 6231157
Give this a try:

http://www.zdnet.com/downloads/stories/info/0,,001H2Y,.html

it's a Java-basedweb browser.  Since it's open-source you should be able to use it as a good starting point.

Some other's out there:
http://java.sun.com/products/hotjava/3.0/
0
 

Author Comment

by:scott01
ID: 6234389
Hi mattyk

thanks for responding to my question, I had a look at the web browser and it's a very large application .... a bit complex for what I am looking for ... do you know if it is possible to pass parameters to an ASP script via an applet?
thanks
Scott01
0
 
LVL 5

Accepted Solution

by:
mattyk earned 100 total points
ID: 6234854
Sure it should be possbile. You would just need to ensure that you are correcly setting the HTTP headers with each response you make. The only header in particular that you would really need to worry about is the temp cookie an ASP page would send when working with sessions.  You would need to read the cookie that ASP will package in the response and then be sure to nclude it back with each request you make.  That should be the only header you would need to add.  The java.net package should contain what you need to do this.
0
 

Author Comment

by:scott01
ID: 6244287
Thanks mattyk
it took me a while but it's working for me now,
thanks again
scott01
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question