Greg's Blog

helping me remember what I figure out

Easy Deployment

| Comments

Hmm guilty. Sean has brought something really useful to my attention and I am sure a number of other people too. Using the ever useful getPageContext() call, you can determine the server port and the context root, which when set as variables can be used to dynamically set environment variables that would normally require the editing of config files. [code] [/code]