Deploying the application

Web application deployment varies depending on the servlet container or application server you use. Please, consult the appropriate documentation.

In case your server requires a web application archive (war) file for deployment, we'll show you how to create it:

  1. Change directory into login-sample
  2. Execute jar cvf login-sample.war *

During deployment you may be asked for a context name. Probably, login-sample is a good choice.

Tomcat 5 users
Tomcat 5 users may simply copy either the login-sample directory or the login-sample.war file to TOMCAT_HOME/webapps.

Does it work?

Open a web browser and point it to http://<hostname>:<port>/login-sample and see what happens...