Use this servlet to retrieve resource file
that control the client-side behaviour and
appearance of a web application that uses the
Sun Web.Components. The resource files must
be in a Jar file that is in the application's
classpath. Configure one instance of this servlet
per web application using themed components:
<servlet>
<servlet-name>ThemeServlet</servlet-name>
<servlet-class>com.sun.rave.web.ui.theme.ThemeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ThemeServlet</servlet-name>
<url-pattern>/theme/*</url-pattern>
</servlet-mapping>
For each theme used in an application, you must ensure that this
servlet is mapped to the identifier specified in the "prefix" property
of the META-INF/swc_theme.properties resource for that
theme. For the standard themes, this is set to /theme so
the mapping illustrated above is sufficient.
Note that, since the JAR files for all installed themes are loaded
into the same class loader, the actual resource paths for the resources
used by each theme MUST be unique. This is true
regardless of whether the themes share a prefix or not.
author: avk |