• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag Behaves Differently than Std Class  RSS feed

 
CaryB
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to write a tag to take text that's all caps and make it mixed case. (e.g. 'SOME COMPANY' becomes 'Some Company') I wrote the routine as a standard class and it works w/o any problems. However, for some reason it behaves differently as a tag. As a tag, the first char is always lowercase. The other changes are fine, but the above example would create 'some Company' when called via a tag by my JSP. Here's the code for the tag. Any advice greatly appreciated. Of course, there's also probably a much more efficient way to do it, too. :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!