There are two ways in which servlets can interact
1.Servlet Chaining---in which a servlet appends tothe output of another servlet.
2.Servlet Filtering--in which the output of one servlet serves as the input of another.
Servlet Chaining一般用来添加一些标准报头标题,页脚和版权申明之类的。
主要是生成一个servlet序列,后一个servlet都附加一个额外的输出结果到前一个servlet.
他的配置可通过application server管理器设置或直接修改rules.properties文件。
加入:"Alias of the Chaining=classA,classB"这样一行即可。
注意的是Servlet Chaining的别名最好以/servlet起头,类之间用逗号分割无空格。
祝你好运!