Results 1 to 2 of 2

Thread: Servlet to forward a HTTP Request

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Sussex, England
    Posts
    45

    Servlet to forward a HTTP Request

    Hi all,

    Just wondering if anyone has any ideas how I might go about writing a java servlet that I can call that will do some processing and then forward the user to a html page passing it some POST data generated by the servlet.

    Thanks in advance
    Ian
    Ian Clarke BSc (Hons) - Web Applications Programmer
    Ricardo Consulting Engineers Ltd.
    Email : [email protected]

  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    This shouldn't be too hard. Just have the servlet, when it's done processing, make it create a real simple output web page that looks something like this:

    Code:
    <html><head><title>Forward</title></head>
    <body onLoad="window.open(\"http://www.disney.com\");">
    </body></html>
    I won't guarantee the JavaScript "window.open()" is correct, but it should give you the right idea.

    cudabean

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width