This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classic tag error

 
Samanthi perera
Ranch Hand
Posts: 510
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic