6 Replies Latest reply on May 13, 2008 9:31 AM by ericjava.eric.chiralsoftware.net

    Feature idea for Seam: @Servlet annotation?

    ericjava.eric.chiralsoftware.net

      Here's an idea for a feature that I would like to see in Seam: an annotation to create servlets.  There's already a @Filter annotation, so my idea is to have something similar for Servlets.


      The reason for this: I would like to be able to use the full power of Seam components, SMPC, etc, within a Servlet.  Sure, Seam handles HTML output and PDF output.  But sometimes I want some other entirely different type of output, like maybe I want to create an RSS feed, or display an image, or dynamically generate a sound file, or various other things.


      Is this a reasonable idea?  How hard would it be to implement?  I might take a crack at it by looking at how @Filter works if this is a good idea.