• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where are my web.xml context params in JSTL?

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In JSTL I am trying to use a parameter called recordsToDisplay. I define this param in web.xml as a context-param. I cannot successfully retrieve the value of this param.
I notice that a diagnostic forEach call on the initParams object yields nothing, where as the same call on the param object returns all my request parameters.
Why can't I gain access to my context-param?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Works fine for me. I have a context param named loggingConfigurationLoaderPath, and the following:

displays its value with no problems.
Are other EL expressions working in your page?
 
Benjamin Weaver
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Bear, for your help on this and other questions I have posted.
Perhaps I have a jar file problem. Of the JSTL jars, I am using only standard.jar and jstl.jar since I was experiencing xml jar file conflicts between JSTL and my current implementation of Tomcat. Up to now I have gotten away with it.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you've got a good Tomcat installation (or whatever container you are using), those jars are all you should really need.
What is your setup?
reply
    Bookmark Topic Watch Topic
  • New Topic