This content has been marked as final.
Show 2 replies
-
1. Re: Transmit byte array as raw file
blabno Aug 11, 2008 12:23 PM (in response to sducas.sducas1.gmail.com)Check seamspace example ! There is a content servlet that should do for you.
-
2. Re: Transmit byte array as raw file
dhinojosa Aug 11, 2008 7:47 PM (in response to sducas.sducas1.gmail.com)I did one using 'AbstractResource' merely extend it and implement the methods
public String getResourcePath() { return "/foo"; }
and
public void getResource(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... }
This would cause the resource to appear in /seam/resources/foo.
Now remember this is ApplicationContext only
If you need something of small scope, I recommend the DocumentStore. That one is a little more involved, and so I would refer you to Seam In Action to learn more about that solution.