• Post Reply Bookmark Topic Watch Topic
  • New Topic

Constants in JSP 2.0  RSS feed

 
Erik Pragt
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?
Thanks,
Erik Pragt
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!