org.davesag.generica.servlet
Class ServletPeer
java.lang.Object
org.davesag.generica.servlet.ServletPeer
- All Implemented Interfaces:
- Serializable
- public class ServletPeer
- extends Object
- implements Serializable
The ServletPeer holds handy methods for interacting with the
servlet.
- Since:
- Generica 1.0
- Version:
- CVS Revision $Id: ServletPeer.java,v 1.7 2004/03/30 10:12:57 norm Exp $
- Author:
- Dave Sag
http://www.davesag.com
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletPeer
public ServletPeer()
storeContextParamAsList
public static void storeContextParamAsList(ServletContext app,
String key,
String param)
- There are several context params that are comma separated lists. eg
countries. looks up the named context param (ie param defined in web.xml
as a context-param) from the servlet context provided, pulls it apart and
stores the resulting ArrayList in the application as an attribute named
according to the provided key.
Note this method trims any whitespace.
- Parameters:
app - The ServletContext.key - The key to file the resulting list under.param - The param to look up
Dave Sag Generica API version 0.5.9 - (prerelease) Copyright © 2003 - 2004 Dave Sag.