The controller is finished, although it may change later. It takes a URL string from the request and instantiates an Action object which then can forward someone to a JSP page or do whatever.

In the following very specific example, the controller receives this URL: http://server/controller/post

The controller would look at the actionMap.properties file (it grabs this from the web.xml deployment descriptor) and translate that into package.action.postAction. Let’s say that we wanted to thank the user for posting. The postAction can be setup to forward to a thank you JSP page called thanks.jsp. The URL won’t change during this process. This is good for hiding the technology that I’m using. Makes it look cleaner.

My next step is to get the display JSP page working. This involves some SQL stuff. Trying to find the best way to do SQL queries. Beans? Custom Tags?