• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Verifying Spring Message Tag Replacement

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, first time poster here...

I'm converting a web portal to using spring tags as a way of globalizing the site, and while I think I've converted everything to tags it's possible I missed something somewhere... but of course it all looks the same as when I started. Is there an easy way to have the tags display differently (without changing every single tag, there's a ton). For example, is there a way to have it display the code itself instead of the proper output string, or similar? I mean, I suppose I could just add a single symbol character to every output string but that just doesn't seem like the right way to go about it.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the implementing class for the spring:message tag, Probably it has to be

org.springframework.web.servlet.tags.MessageTag

Download this class and you will see a method like:


EDIT IT TO SUIT YOUR REQUIREMENT: For example , to tell if the message is coming from spring tag , then you can append a string like:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic