This content has been marked as final.
Show 4 replies
-
1. Re: Custom Servlet using Seam Example
dan.j.allen May 24, 2008 12:36 AM (in response to thorsson)You need to SeamFilter installed, which relies on the SeamContextFilter to establish Seam contexts around a custom servlet. Then you can get a Seam component as follows:
Component.getInstance(
componentName
); -
2. Re: Custom Servlet using Seam Example
mauney Jun 4, 2008 1:24 PM (in response to thorsson)Hi Dan,
Have you tried it? Do you have any example?
Thanks, -
3. Re: Custom Servlet using Seam Example
nickarls Jun 4, 2008 10:12 PM (in response to thorsson)You can also wrap your servlet request in a ContextualHttpServletRequest in doGet etc.
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { new ContextualHttpServletRequest(request) { public void process() throws Exception { // Access seam stuff with Component.getInstance(...) } }.run(); }
-
4. Re: Custom Servlet using Seam Example
tausuahmed Aug 18, 2010 3:10 AM (in response to thorsson)How to use it in war project, because all the action classes are in dev folder. And servlet has to be in web-inf/classes folder.
Regards,
Tauseef