First, make sure the molly framework is installed properly.

Then, to handle molly pages, the web-server must be configured to map a file extension to the molly PageServlet. This is done by adding the following to the appropriate sections of the WEB-INF/web.xml servlet configuration file (or equivalent file for your server).

<!-- the molly servlet --> <servlet> <servlet-name>molly</servlet-name> <servlet-class></servlet-class> <!-- optional parameters here, see javadocs for pageservlet --> </servlet> <!-- The mapping for the molly servlet --> <servlet-mapping> <servlet-name>molly</servlet-name> <url-pattern>*.mp</url-pattern> </servlet-mapping> Note, I typically use the *.mp extension for molly pages. This is not required and you are free to choose whatever you like (but I suggest sticking to *.mp anyway).

Optionally, you can also add the following to your web application's web.xml file (or equivalent for your webserver)

<welcome-file-list> <welcome-file></welcome-file> .. etc .. </welcome-file-list>