UserInterface Notes

Static web pages

They are in cvs under WSA/docs/webpages as .ht files

A cronjob is run daily at around 1pm that checkouts the cvs .ht files and adds the side-bar and banners and copies them over to thoth.

On thoth they live under /thoth/www/wsa this directory shows up as survey.roe.ac.uk/wsa

Forms/jsp pages

Most of forms are jsp pages so that they can reflect the login status of the user dynamically

Forms are in cvs under WSA/src/jsp On thoth they are in /thoth/webapps/wsa

Servlets

Most of the forms action servlets. The jsp and servlets both run under Tomcat (4.1). The servlets are in /thoth/webapps/wsa/WEB-INF/classes and associate jar library files are in /thoth/webapps/wsa/WEB-INF/lib

In cvs the servlets are in WSA/src/JavaServlets.

A properties file /thoth/webapps/wsa/WSA.properties sets up some of the parameters/base SQL that the servlets use.

If things stop working then the webapps folder can be reloaded using the Tomcat manager tool at http://surveys.roe.ac.uk:8080/manager/html by clicking the reload link alongside the /wsa. If this doesn't do the trick Tomcat will need to be stop/started by Horst.

New versions of the servlets or updates to the properties files will require a reload to take effect. New versions of jsp pages when copied over to thoth should automatically be loaded.

CGI scripts

The image extraction, FITS download, jpeg serving and nonSurvey reg areq handled by CGI scripts again on thoth under /home/mar/public_html/cgi-bin/ and under cvs in WSA/src/cgi

Usernames

Usernames, communities etc are stored in the usernames DB on amenhotep.

Community contacts manage there community through http://surveys.roe.ac.uk/wsa/userAdmin.html which actions a passwd protected servlet.

NonSurvey

The registration cgi sends emails to mar and jb. The files are also saved on thoth in /home/mar/public_html/nonSurvey

Logs and results files

All under thoth:/thoth/www/wsa/tmp/

Some logging of the servlets is done to a daily log4jsimple.log in thoth:/thoth/www/wsa/tmp/logs. Some cgis log to cgi******.log.

Results files are stored in other thoth:/thoth/www/wsa/tmp/ directories eg tmp_sql, MultiGetImage etc.