Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag Behaves Differently than Std Class  RSS feed

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. :-)
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!