• 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

Intialization Parameters for JSPs

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am caught up with one doubt. Can we provide Initialization parameters for JSPs as we do for servlets in web.xml file. If so, how can we do that?
Thanks,
Uday Kiran
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Uday Kiran:
Hi,
I am caught up with one doubt. Can we provide Initialization parameters for JSPs as we do for servlets in web.xml file. If so, how can we do that?


<!ELEMENT servlet (icon?, servlet-name, display-name?, description?,servlet-class|jsp-file), init-param*, load-on-startup?, run-as?, security-role-ref*)>
If you notice the servlet element in web.xml, it takes servlet-class or jsp-file. Placing a jsp instead of servlet-class will help you to pass init params to your JSP.
Thanks,
Moorthi
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic