-
1. Re: Servlet filters not getting executed
julien1 May 10, 2005 4:40 AM (in response to gavinc)it is not possible because your filter is applied on your application and is not triggered by jboss portal.
you need to move the filter to /jboss-portal.sar/portal-server.war/WEB-INF/web.xml
this raise an interesting question about portlet filters. we could develop portlet filter for portlet that would be executed before the portlet is invoked. -
2. Re: Servlet filters not getting executed
paulhh May 10, 2005 10:19 AM (in response to gavinc)I think this causes us a few headaches. We'd like to be able to use the JSF file upload component from MyFaces - but I think this stops us. Also, we were thinking of doing some security stuff with Acegi, but that too will hit this in the portal.
Obviously, running our stuff outside the portal is fine - but we'd really like to see it running inside JBoss Portal.
Perhaps Gavin can give a bit more detail on what the issues are?
Cheers
Phh. -
3. Re: Servlet filters not getting executed
julien1 May 10, 2005 10:37 AM (in response to gavinc)paul, why do you need a servlet filter for fileupload in myfaces ?
-
4. Re: Servlet filters not getting executed
gavinc May 10, 2005 11:42 AM (in response to gavinc)In MyFaces you need to define their extenstionsFilter to handle the multipart request that a file upload produces.
If this filter is not called the request arrives at the portal's/MyFaces door in multipart/form-data encoding and not application/x-www-form-urlencoded. The request doesn't get handled propely then and you just remain on the same JSF page!
I've just replied to a message from Stan regarding this (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=63779) so hopefully he can let me know if there is a different way of doing it!
We were also hoping to use Acegi for some of our security mechanisms and this also relies on filters being called before the request is actually handled.
I think the portlet filters stuff may work for the security stuff but not for the multipart requests as those need to be handled real early in the request cycle?
Cheers,
Gav -
5. Re: Servlet filters not getting executed
sgwood May 22, 2005 4:02 PM (in response to gavinc)
Any more thoughts on portlet filters?
I am integrating an OLAP UI (JPivot) into JBoss Portal. JPivot uses a filter as the controller and JSPs are the views. There are also some servlets that are used for particular functions. A portlet filter that understood filters in the portlet web.xml would be ideal. Then the JBossPortlet subclass for the portlet would be simpler.
I have seen the Command subclasses being used in the forums ie. ForumPortlet.init(), but can't find how they are executed. Can you give me some pointers?
Thanks,
Sherman