• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tag name in TagSupport

 
srilatha kareddy
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
please help me with the code below



in jsp i have


above both tags will call SelectTag class (in tld i have two tags nameOfTag,anotherName)
 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the javax.servlet.jsp.tagext.TagSupport API to see what you can get. There are getValues() and getId() methods. However, you would first need to set them.
 
srilatha kareddy
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
thanks problem solved.
i tried in different way .i gave attribute which is required and checking if that attribute is not null and writing code differently for two jsp tags
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic