• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implicit Objects

 
Harshana Dias
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the type of JSP implicit object out?
Is it PrintWriter or JspWriter?
Becuse in HFSJ said Expressions become the argument to a statement that prints to the implicit response PrintWriter out.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you could look it up in the JSP Specification?
 
Harshana Dias
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Perhaps you could look it up in the JSP Specification?


Well i looked it and couldnt find a better answer.

Just wanna know,
What is it real type of object out? is it JspWriter or PrintWriter?
I have checked in the JSP specification it says "JspWriter is available by default as implicit objects" so i guess out type is JspWriter.
But what confused me was in HFSJ is referred to as PrintWriter too in page 289. (It says "container takes everything you write between expressions and puts it in as the arguments to a statement that prints implicit response PrintWriter out")
Also what is the different or relationship between those two types?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always just print the classname from a JSP page if you were unable to locate the proper documentation.

The API docs for PrintWriter and JspWriter describe both.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!