Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

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

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
scott01
Asked:
scott01
  • 2
  • 2
1 Solution
 
mattykCommented:
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
 
scott01Author Commented:
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
 
mattykCommented:
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
 
scott01Author Commented:
Thanks mattyk
it took me a while but it's working for me now,
thanks again
scott01
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now