aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Intialization Parameters for JSPs Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Intialization Parameters for JSPs" Watch "Intialization Parameters for JSPs" New topic
Author

Intialization Parameters for JSPs

Uday Kiran
Greenhorn

Joined: Feb 09, 2004
Posts: 14
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

Joined: Jan 02, 2004
Posts: 15
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Intialization Parameters for JSPs
 
Similar Threads
request object in jsp
Dispatching a request
how to send cookie from one jsp page to another jsp page or to servlet
Confusion in setting Init Parameters for jsp
testing a startup class in weblogic