Results 1 to 2 of 2
  1. #1
    jrdncchr is offline Member
    Join Date
    Mar 2011
    Rep Power

    Default send an HTML code as ouput in browser

    How can I send an output to the browser, example I want to send

    <html><body>UNAVAILABLE PAGE!</body></html>


    What will the code for it? Im using socket and streams..

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: send an HTML code as ouput in browser

    Can you describe where your code is executing and where the browser is?
    A desktop app could write an html file to disk containing the html text you want and call the system's browser by using the Desktop class referring to the file you created.

Similar Threads

  1. Getting HTML element with mouse click in browser?
    By bobocheez in forum New To Java
    Replies: 2
    Last Post: 11-30-2011, 08:17 AM
  2. Send login credentials to applet in html
    By spooky in forum Java Applets
    Replies: 2
    Last Post: 05-14-2010, 03:50 AM
  3. Replies: 1
    Last Post: 03-04-2010, 12:19 PM
  4. Replies: 1
    Last Post: 10-30-2009, 07:47 AM
  5. want sql Query ouput in the calling HTML Form.. Pls Help
    By Faheem_Ahmed in forum Advanced Java
    Replies: 2
    Last Post: 03-05-2009, 09:08 PM

Posting Permissions

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