Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2008, 01:37 PM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
aks.nitw is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-22-2008, 02:59 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,502
Rep Power: 8
Fubarable is on a distinguished road
Default
create a japplet?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-22-2008, 03:46 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Quote:
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-23-2008, 06:14 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 10-23-2008, 01:56 PM
Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
lks0912 is on a distinguished road
Default
You mean to display the output in a web page (html) rather than in command prompt or text file??
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 01-18-2010, 02:33 PM
Member
 
Join Date: Jan 2010
Posts: 3
Rep Power: 0
magda is on a distinguished road
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.

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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to DAT or TXT file hunterbdb Advanced Java 7 10-12-2008 03:50 PM
How can I include a html file in html textarea? surya_dks New To Java 2 10-04-2008 08:20 AM
swapping the contents of the file and writing to another file Ms.Ranjan New To Java 9 07-10-2008 05:52 PM
Writing an XML output JThangiah XML 2 03-27-2008 05:15 PM
writing to a file bugger New To Java 1 11-11-2007 03:49 AM


All times are GMT +2. The time now is 06:29 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org