Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-06-27
4
Medium Priority
?
199 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 400 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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

715 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