Solved

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

Posted on 2001-06-27
4
196 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jsp login check 12 67
mysql jsp example issue 32 96
Tagging and Merging on Branch 1 69
Read CLOB data from Oracle using JAVA 3 43
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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

738 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