Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag handler classes...  RSS feed

 
mendy smith
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just curious to know whether it is a good idea to have many tag handler classes with not much details in each tag class or is it good to have everything we need to do in a particular tag handler class. I am not sure which is the efficient way of doing this. Let's say there is a report , in which we need to have forward , backward, first or last pages to be reviewed back and forth, then is it a good idea to have 4 tags or is is good to have 1 tag taking an attribute value(parameter value like "first", "last"...).
Thanks,
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Custom tag libraries are really for the convenience of the person writing the JSP pages, so I would use whichever method is clearest, easiest and least likely to be screwed up if you have to turn the JSP writing over to somebody else.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!