Using Java method to display HTML code

Posted by javArc on Stack Overflow See other posts from Stack Overflow or by javArc
Published on 2010-06-10T16:21:42Z Indexed on 2010/06/10 16:22 UTC
Read the original article Hit count: 151

Filed under:
|

Hey folks, ok so this is my problem, I need to display HTML code in a jsp, which wouldn't be a problem, except a requirement for this project is that we place all the code in a public class file and have seperate methods for each chunk(header, sidebar footer, etc). Now here's where i'm confused:

"Your method should take the PrintWriter as a parameter to print out each line of HTML, and should have a return type of void"

What does that mean? How do I pass the PrintWriter into a method? Does this make sense to anyone?

© Stack Overflow or respective owner

Related posts about java

Related posts about homework