This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Intialization Parameters for JSPs

 
Uday Kiran
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Moorthi Ramasamy
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic