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 Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classic tag error

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is my tag handler class


it gives these errors
EVAL_BODY_INCLUDE cannot be resolved
EVAL_BODY_INCLUDE cannot be resolved
EVAL_BODY_INCLUDE cannot be resolved
EVAL_BODY_AGAIN cannot be resolved
EVAL_BODY_AGAIN cannot be resolved
EVAL_PAGE cannot be resolved

i already added servlet.jar and jsp.jar files


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you think those constants come from? Magic?

What step have you missed?

Hint: what makes the class a tag handler in the first place?

P.S. Do you really not indent your code?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have added htese imports

but errors are still there?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't answered my question:

Bear Bibeault wrote:What makes the class a tag handler in the first place?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.I got it.Extending Tagsupport class
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Where do you think those constants come from? Magic?

Oh, but what if they did?! SimpleUnicornsAndFlowersTagSupport.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic