29-Sep-04 (Created: 29-Sep-04) | More in 'Release Notes'

LoginApp 3 released

Features

1. Login
2. Logout
3. Login/Logout buttons
4. Simple master page
5. JSP includes

Download loginapp3

Installing on tomcat

  • Download the zip file from the above link
  • Unzip to any directory
  • Choose a webcontext that you like. An example would be "my-loginapp" or "loginapp3"
  • Change server.xml of tomcat for this web context to point to the unzipped directory

Assuming your webapp context is "loginapp3", you will access the aplication as


http://localhost:8080/loginapp3

Installing it as a war file

You can also install this application as a war file. For appservers that don't expand the war file by default this mode is the only mode available. You will have to change the following to deploy this as a war file.

Change aspire.properties with the following entries


# Change the configuration implementation to read
# from web app resources
request.ApplicationObjects.Config.className=\
com.ai.servlets.WebAppConfigWithIncludes1

# Write the log file outside of war
directories.workingdir=c:\\work
Logging.logfile=workingdir:\\log\\akc.log

#Provide a protocol reader for resource reads
aspire.resourcehandlers.aspire.classname=\
com.ai.servlets.AspireWebappResourceReader

Forcing war emulation mode

You can add an initialization servelet parameter to force web emulation


<servlet>
        <servlet-name>AppInitServlet</servlet-name>
        <servlet-class>
            com.ai.servlets.AppInitServlet2
        </servlet-class>
        <init-param>
            <param-name>AppConfigFilename</param-name>
            <param-value>aspire.properties</param-value>
        </init-param>
        <init-param>
            <param-name>EmulateWebDeploy</param-name>
            <param-value>true</param-value>
        </init-param>
	<load-on-startup>1</load-on-startup>
</servlet>

War emulation caution

XSLT transformation is pending to be fixed in the emulation mode. If you need help on that email me.