Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to print a HTML file in core java??

 
Rupali Das
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one tell me...How to print HTML file in core java.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rupali Das wrote:Can any one tell me...How to print HTML file in core java.


What do you mean by "print file in core java",
If you want to simply read a HTML file or any file and print it on console, Java has, FileInputStream class.
 
Kumaresh Vidhyasagar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you posting problems related to Core Java in JSF? Please use the proper forum topics.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to be more specific.

As you´re posting this at the JSF forum, I assume the following:

You have a JSF page opened in a web browser. You want to add a "Print" button or link to it and you want that it should open a print dialog.

Is this true? If so, simply use Javascript´s window.print() function in the onclick event. If not, you need to elaborate more about the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic