Results 1 to 6 of 6
  1. #1
    aks.nitw is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default Help in writing the output in html file

    hi...
    i want to display the ouput of java file in a web page rather than in the command prompt.
    What should i have to do for this?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    create a japplet?

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,266
    Rep Power
    25

    Default

    ouput of java file in a web page
    What is "the output of java file"? Do you mean the output from a java program?
    Does "in a web page" mean in a browser?
    Is there a server and client involved or is it a standalone app on your computer only?
    If only your computer have the java program write the output to a file with the correct HTML tags and start a browser to read that file and display it.

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by Norm View Post
    What is "the output of java file"? Do you mean the output from a java program?
    Another possible meaning of "output of java file" could be a listing of the source of the Java file.

    If the OP means "create content in a Java program and write the results as an HTML page to a user's browser" then the usual way to do that is with a servlet.

  5. #5
    lks0912 is offline Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    0

    Default

    You mean to display the output in a web page (html) rather than in command prompt or text file??

  6. #6
    magda is offline Member
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    Default servlet or library

    Hi, I have a problem similar to the original one. I need to write an application which will create a html document and display some information in it.

    Quote Originally Posted by fishtoprecords View Post
    then the usual way to do that is with a servlet.
    I've read a little about servlets and understood that usually you use them when you have a web application: for example there is a web page where a user can enter some data and then the servlet processes it and changes the web page according to the entered data.
    I don't need to change the html dynamically all I need is to create it using some data I already have and send it to user, who is only going to read the content of the page and click some links.
    I had a look at iText library 1T3XT: Product . The old versions of it create pdf, rtf and html, so maybe this would be enough to create my web page, since I don't need interaction with user?
    I will also need to create some graphs and display them on this web page so will need another library for the graphics.
    I would appreciate some tips on what to use. Thanks.

Similar Threads

  1. Writing to DAT or TXT file
    By hunterbdb in forum Advanced Java
    Replies: 7
    Last Post: 10-12-2008, 02:50 PM
  2. How can I include a html file in html textarea?
    By surya_dks in forum New To Java
    Replies: 2
    Last Post: 10-04-2008, 07:20 AM
  3. Replies: 9
    Last Post: 07-10-2008, 04:52 PM
  4. Writing an XML output
    By JThangiah in forum XML
    Replies: 2
    Last Post: 03-27-2008, 04:15 PM
  5. writing to a file
    By bugger in forum New To Java
    Replies: 1
    Last Post: 11-11-2007, 02:49 AM

Posting Permissions

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