org.locomotive.module.userpref
Class PersonalPrefServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.locomotive.loco.servlet.LocoServlet
                    |
                    +--org.locomotive.module.userpref.PersonalPrefServlet

public class PersonalPrefServlet
extends LocoServlet

A simple User Preference System. Allows a user to modify his preferences/personal info. To use this module, add the servlet to your hrt.conf file. An example would be:

 usrpref           org.locomotive.module.userpref.PersonalPrefServlet
 
entry point from UserPrefServlet.java - main logic of servlet This servlet accepts the following URLS:
 usrpref or            displays personal page. if permissions allow,
 usrpref?personal      modifications may be made to certain fields.
 

See Also:
Serialized Form

Fields inherited from class org.locomotive.loco.servlet.LocoServlet
conn, DEBUG, ERROR, form_data, NORMAL, req, resp, session, steam_vars, url_tokens, user, WARNING
 
Constructor Summary
PersonalPrefServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          determines whether hit requires handling new data, then displays the page
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
static void formatUserPrefsToSteam(UserPref info, java.util.Hashtable steamVars)
           
static boolean saveFormValuesToUserPref(FormData formData, UserPref upi, java.lang.StringBuffer errorBuf)
           
 
Methods inherited from class org.locomotive.loco.servlet.LocoServlet
displayPage, displayString, handleException, log, logEvent, sayBadURL, service, setup
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonalPrefServlet

public PersonalPrefServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws javax.servlet.ServletException,
                  java.io.IOException
determines whether hit requires handling new data, then displays the page
Overrides:
doGet in class javax.servlet.http.HttpServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse resp)
            throws javax.servlet.ServletException,
                   java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet

saveFormValuesToUserPref

public static boolean saveFormValuesToUserPref(FormData formData,
                                               UserPref upi,
                                               java.lang.StringBuffer errorBuf)

formatUserPrefsToSteam

public static void formatUserPrefsToSteam(UserPref info,
                                          java.util.Hashtable steamVars)