Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. How Do I...? > How do I configure my application?

How do I configure my application?

Many applications require some configuration parameters, such as paths to external directories, default account names, and so on. Since these parameters need to be updated by application deployers, it is not a good idea to place them inside your application code.

A good place for supply configuration parameters is the web.xml file. Provide a set of context-param elements inside the web-app element, such as:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint