aspose file tools*
The moose likes JSP and the fly likes jsp writer cannot be resolved to a type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp writer cannot be resolved to a type" Watch "jsp writer cannot be resolved to a type" New topic
Author

jsp writer cannot be resolved to a type

ruba sampath
Greenhorn

Joined: Jun 17, 2011
Posts: 28
In the following code i get jsp writer cannot be resolved to a type..kindly help me





Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

That's because you didn't import it (at the top of the code, with all those other import statements).
ruba sampath
Greenhorn

Joined: Jun 17, 2011
Posts: 28
wat should i import at the top of the class?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

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

Joined: Jul 06, 2005
Posts: 1018
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

Joined: Jun 17, 2011
Posts: 28
resolved
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp writer cannot be resolved to a type