The following is a sample sun-web.xml file:
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2002 Sun Microsystems, Inc. All rights reserved. --> <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Sun ONE Web Server 6.1 Servlet 2.3//EN' 'http://www.sun.com/software/sunone /webserver/dtds/sun-web-app_2_3-1.dtd'> <sun-web-app> <session-config> <session-manager/> </session-config> <cache enabled="true" timeout-in-seconds="300" > <cache-mapping> <servlet-name>ServCache</servlet-name> <key-field name="inputtext" scope="request.parameter"/> <constraint-field name="inputtext" scope="request.parameter"> <value>one</value> <value>two</value> </constraint-field> </cache-mapping> </cache> </sun-web-app>