Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Constants in JSP 2.0

Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've Googled, searched the forums, etc, but I could not find the answer to this simple question.
I've just started working with JSP 2.0. In JSP 1.2 is usualled used contants (or macro names) like this to retreive my session variables:

Now would like to do the same thing in JSP 2.0, but I was wondering if it's possible?
Consider the following example:

This doesn't look to nice, does it? I could rewrite it to:

But now it doesn't use macro's anymore, and making typing errors, like writing command with a captial C, could mess up my whole application without knowing about it.
My question is: is there a nice solution to this issue?
Erik Pragt
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic