Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
2.7 An Example Using Initialization Parameters
43
Listing 2.10 servlets.properties 
# servlets.properties used with the JSWDK
# Register servlet via servletName.code=servletClassFile
# You access it via http://host/examples/servlet/servletName
ShowMsg.code=coreservlets.ShowMessage
# Set init params via 
#   servletName.initparams=param1=val1,param2=val2,...
ShowMsg.initparams=message=Shibboleth,repeats=5
# Standard setting
jsp.code=com.sun.jsp.runtime.JspServlet
# Set this to keep servlet source code built from JSP
jsp.initparams=keepgenerated=true
Figure 2 6
Registering a name for a servlet with the Java Web Server. Servlets that 
use initialization parameters must first be registered this way.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved