|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.displaytag.properties.DisplayPropertiesLoaderServlet
displaytag.properties file in your classpath. This will also load locale specific properties (for
example displaytag_IT.properties) when needed.
Servlet which loads a user supplied properties file for the display taglibrary.
You probably do not need to use this servlet. For most cases, you should simply add a displaytag.properties file to your system, to the same effect, and not have to configure this servlet. If you have both a displaytag.properties, and you configure this servlet, the properties in the property file specified here will override the properties in the displaytag.properties.
To set a default properties for a whole web application configure this servlet in web.xml and set a "properties.filename" parameter with the path to the properties file, relative to the web application root (example: "WEB-INF/display.properties").
The original properties file is still loaded and used when any of the parameters is missing
Sample Web.xml entry:
<servlet id="DisplayPropertiesLoaderServlet">
<servlet-name>DisplayPropertiesLoaderServlet</servlet-name>
<display-name>DisplayPropertiesLoaderServlet</display-name>
<description>displaytag initialization servlet</description>
<servlet-class>org.displaytag.properties.DisplayPropertiesLoaderServlet</servlet-class>
<init-param>
<param-name>properties.filename</param-name>
<param-value>WEB-INF/display.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
| Field Summary | |
static java.lang.String |
PROPERTIES_PARAMETER
Deprecated. name of the parameter containing the properties file path. |
| Constructor Summary | |
DisplayPropertiesLoaderServlet()
Deprecated. |
|
| Method Summary | |
void |
init(javax.servlet.ServletConfig servletConfig)
Deprecated. Init: retrieve the confiuration parameter and set the user file name in org.displaytag.tags.TableProperties. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PROPERTIES_PARAMETER
| Constructor Detail |
public DisplayPropertiesLoaderServlet()
| Method Detail |
public final void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
org.displaytag.tags.TableProperties.
servletConfig - ServletConfig
javax.servlet.ServletException - generic exceptionServlet.init(ServletConfig)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||