为什么不写成一个Servlet呢?
如果真要这样,就需要写代码实现。

解决方案 »

  1.   

    To configure a servlet chain, use the Administrative Console to: Add an instance of the internal servlet com.ibm.websphere.servlet.filter.ChainerServlet to your Web application. Assign the ChainerServlet a servlet URL, such as abc. 
    For the instance of the ChainerServlet, add the following initialization parameter and value: Parameter Value 
    chainer.pathlist /first_servlet_URL /next_servlet_URL 
    The chainer.pathlist is a space-delimited list of servlet URLs. For example, if you want the sequence of servlets to be three servlets that you added to the examples application (servletA, servletB, servletC), specify: Parameter Value 
    chainer.pathlist /servletA /servletB /servletC To invoke a servlet chain, invoke the servlet URL of the ChainerServlet instance, for example, http://your.server.name/webapp/example/abc. 
      

  2.   

    This isn't a servlet chain but a servlet filtering.
    It is useful for translation or substitution:
       Translating xml to html
       Adding specific values to template
    其实是你定义一个filter servlet专门处理某种mime格式(你事先定义的)的输出。
    配置:
       在mimeservlets.properties文件中加入
       "mimetype=filterservlet"如:"text/xml=xml_translate"
    祝你成功!