Active Web as a Web Application

Combining Scripts and Documents

With the Concerto application server static and dynamic content were separated in the installation directory hierarchy into the scriptRoot and webRoot directories.  The web application concept brings these two sets of resources closer together into one easily distributable unit.

Active Web removes the need to separate your static and dynamic content.  By using a path mapped Active Web servlet we can combine the contents of scriptRoot and webRoot into one hierarchy.

All you as the developer then need to worry about is ensuring that you add the Active Web servlet path mapping to each dynamic page link.  For example consider the following WAR file:

/index.html
/images/logo.gif
/images/basket.gif
/stock/index.html
/stock/stocklist.xsp
/WEB-INF/web.xml
/WEB-INF/lib/concerto.jar

The only dynamic page is stocklist.xsp and it is accessed via a link on the /stock/index.html page.  By default the Active Web web application is configured with an extension mapping of *.xsp to the Active Web servlet. All you need to do to display the stock for a given warehouse would be to access the page /stock/stocklist.xsp, the page would then be executed dynamically via the Active Web servlet.

Comment on this topic

Topic ID: 150003