This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Pie
Posts: 20763
30
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
Pie
Posts: 20763
30
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
Pie
Posts: 1670
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