• 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

how to access initial parameters from jsp..?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
In Servlets, we can access the initial parameters specified in the web.xml using the getServletConfig().getInitParameter("xyz")
But, I am unable to access the initial parameters from a JSP page. Please do help me in this regard.

Thanks in advance,
prakash.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Jsps you can access the initial parameters using the following scriplet
<% String parameter=application.getInitParameter("nameoftheparameter"); %>
Hope this helps
nirmal
 
Prakash Chidambaram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friend,
Thanks a lot for your reply. But i tried the same to my jsp pages hosted at www.webappcabaret.com. But they just return only Null as result. Could you let me know whether the above mentioned site supports getInitParameter() method.

With Regards,
Prakash.
 
reply
    Bookmark Topic Watch Topic
  • New Topic