The following example shows a sample sun-web.xml file.
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd"> <!-- Copyright 2006 Sun Microsystems, Inc. All rights reserved. --> - <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>