Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 57
maven example error 3 35
recursion example 16 68
how do i compare an object based on two fields 6 31
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now