• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Constants in JSP 2.0

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
Thanks,
Erik Pragt
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic