This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp writer cannot be resolved to a type

 
ruba sampath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the following code i get jsp writer cannot be resolved to a type..kindly help me





 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because you didn't import it (at the top of the code, with all those other import statements).
 
ruba sampath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wat should i import at the top of the class?
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should import JspWriter, of course. From whatever package it's in... I haven't ever written Java code which takes a JspWriter as a parameter and writes HTML to it, and I never will, so I don't have any examples available. However if you do a web search for the term "jspwriter" using Google or whatever search engine you prefer, I predict that the first link will tell you what package it's in.
 
Stefan Evans
Bartender
Posts: 1778
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you could just click the link to the java API created whenever you write JspWriter in your message.

Now THATS a cool forum feature.
 
ruba sampath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
resolved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic