• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use constants in jstl tag  RSS feed

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I personally like keep parameters and names on a "constant" class and I was wondering how to use them from a jsp page.

For example:
On my class I save a collection on the request like this:


On the jsp I would probably use something like


Any help?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have I got an article for you! Please see this article.
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the link, very helpfull
I tried to implement straigh away, but I'm having some problem into achieving my purpose.
With that classes I can succesfully retrieve my static string, but I can't retrieve an obejct saved in the request with a constants string name.


doesn't display anything, I guess it finds a string instead of a collection.
Any suggestions about that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!