Filter 1 « Web « Spring Q&A





1. setting view name in spring filter    stackoverflow.com

I've an ErrorFilter which extends the spring GenericFilterBean. I want to show an error page decorated with tiles if some error happens. Is there any way to set a view name ...

2. How does work context:include-filter and context:exclude-filter from spring 3.0?    stackoverflow.com

I have several services:

  • example.MailService
  • example.LDAPService
  • example.SQLService
  • example.WebService
  • example.ExcelService
annotated wiht @Service tag. How can i do exclude all services exept one? For example: only use MailService.
I use the next configuration:
<context:component-scan base-package="example">
    <context:include-filter type="aspectj" expression="example..MailService*" ...

3. spring - how to pass a value from an app to a filter    stackoverflow.com

So I need to add a filter to a spring app, such that after the response has been flushed back to the client, I write to a log file. The values ...

4. I can't use Spring filters in servlet-context XML    stackoverflow.com

For some reason both Eclipse and Spring can't find the filter tag (there is even a red mark)... What's wrong?

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
    ...

5. Spring OEMIV filter and ajax tabs    stackoverflow.com

We have an application that list entities and displays the lazy loaded details of the default / selected entity using multiple (ajax / jquery) tabs. We use OpenEntityManagerInViewFilter (OEMIV) to maintain ...

6. filter-chains    forum.springsource.org

filter-chains I have a project where I have to authenticate two different ways. One from a cookie, one from Flex. I've got the filter-chain working for the cookie but I'm not ...

7. how to set failureHandler in custom filter    forum.springsource.org

public class MyFilter implements Filter { @Override public void doFilter(ServletRequest servReq, ServletResponse servRes, FilterChain chain) throws IOException, ServletException { if(true) "call to authentication-failure-url"; chain.doFilter(request, response); } }

8. My first Filter    forum.springsource.org

Feb 27th, 2011, 10:04 AM #1 SrArcos View Profile View Forum Posts Private Message Junior Member Join Date Feb 2011 Posts 3 My first Filter Hello all, I am new in ...

9. Filter: Sequence Size is Not Modified    forum.springsource.org

Filter: Sequence Size is Not Modified Assuming we have the following flow: Adapter --> Splitter --> Filter --> Router --> Aggregator By default Aggregator aggregates by sequence size. When an adapter, ...





10. Filters and UserDetailsServiceImpl    forum.springsource.org

Filters and UserDetailsServiceImpl Hello together, Ive got some questions to Spring Security. I read that the necessary filters for securing a webapplications are the following: SecurityContextPersistenceFilter UsernamePasswordAuthenticationFilter ExceptionTranslationFilter FilterSecurityInterceptor Furthermore I ...

11. Filter/Interceptor implementation desirable    forum.springsource.org

If anyone want to contribute, consider implementing the 2 filters referred to in this artical both as spring filters and interceptors for those of us (like me) who currently am stuck ...

12. Problem with filters in web.xml    forum.springsource.org

Problem with filters in web.xml Ok some questions, because we want to use Acegi in our Struts-Spring-Hibernate application: - first of all, is there a good tutorial, besides the examples - ...

13. Why can't I unsecure /** URL pattern with filters="none" ?    forum.springsource.org

This is what I'm doing: My configuration doesn't contain any more intercept-url definitions. However after accessing any URL I still get redirected to the default entry point... ...

14. Spring JS Filtering Select Decoration Validation issue    forum.springsource.org

Spring JS Filtering Select Decoration Validation issue Hi All, I have an form field as below .. Validation is working if the widget is not focused by the user. But if ...

15. custom expression handler for filter invocations?    forum.springsource.org

16. Is WebRequestInterceptors Spring's way to do Servlet Filters?    forum.springsource.org

Servlet Filters exist in Spring as well, but the WebRequestInterceptor implementations are used to integrate with other technologies like JPA or Hibernate for example to tie in a Hibernate Session for ...





17. intercept-url not working when filter='none'    forum.springsource.org

intercept-url not working when filter='none' Hi, I have defined several intercept-url patterns that use filters='none' since I want to remove any filters from being applied (example '/test/**'). One of these URL's ...

18. Table framework filtering -first cut    forum.springsource.org

Table framework filtering -first cut Hello, I have first cut design table framework - it is raw yet, but I can see base idea screenschoots : http://www.snpe.co.yu/table-filter.png http://www.snpe.co.yu/table-nofilter.png (normal mode with ...

19. Problem with filters="none" and requires-channel="https"    forum.springsource.org

Problem with filters="none" and requires-channel="https" Hi, I'm finding it hard to understand why this configuration snippet is no longer acceptable in Spring 3.0.x: Code: This will cause ...

20. Disable Functionality Issue on Filtering Select    forum.springsource.org

Disable Functionality Issue on Filtering Select Hi , i have created an ajax functionality through which i am populating data in my select boxes using ItemFileWriteStore class of Dojo. The functionality ...

21. Does adding Custom Filter affect the Chain?    forum.springsource.org

If I define a filter Chain Proxy as follows: will the other filters in Standard Filter chain ...

22. Filters    forum.springsource.org

Filters Hi, My application is using Spring Blaze DS (Flex Client) , Spring MVC and Spring Security. I would like to achieve the below functionality. 1) I need to capture each ...

23. Multiple web.FilterSecurityInterceptor-s per filter    forum.springsource.org

Hi, we are appling Acegi security to large Spring-Struts web based application. There are several modules which have its own spring context and struts xml configuration files. We would like each ...

24. A Simpler Filter Configuration?    forum.springsource.org

A Simpler Filter Configuration? Hello, I think I saw some posts about this very idea somewhere else, but can't find the reference. If anyone has seen previous info, and has the ...

25. filtering media    forum.springsource.org

filtering media I need to filter media on the base of authentication. I've written a controller for that purpose. Now I have to filter media requests to this controller I've tried ...

26. Global filters in conf/web.xml    forum.springsource.org

Global filters in conf/web.xml I am landing into problems trying to add the acegi security filters in the conf/web.xml file. Basically I want global filters and not filter specifications in web.xml ...

27. HTTP filter    forum.springsource.org

2 questions from contact.sample app. 1 How would I know to use an AuthenticationProcessingFilter? 2 What glues it into the authentication app? My guess is b/c of the type filter, web.FilterSecurityInterceptor?? ...

28. if u don't have a context param then u can't have filters    forum.springsource.org

if u don't have a context param then u can't have filters I bought the Oreilly Tomcat book about 3 months ago. I believe there are roughly 30 tags you can ...

29. Statefulness of Managers for audit/filter purposes    forum.springsource.org

Statefulness of Managers for audit/filter purposes Hello group, I've been putting off a design decision for a few weeks now, but it is time to make a choice. Our application uses ...

30. filter setter injection    forum.springsource.org

I'm just starting with Spring, and I like it very much so far :-) but I have a small problem. I'm using a custom filter for my webapplication, I want spring ...

31. Servlet filtering for 2.4 API    forum.springsource.org

Hello, I know that servlet forwards (as opposed to redirects) arent supposed to be secured by ACEGI as per the post below: http://forum.springframework.org/showthread.php?t=11025 However when using a 2.4 servlet container a ...

32. How to automatically enable H3 filters?    forum.springsource.org

How to automatically enable H3 filters? I'm trying to figure out how to automatically enable certain Hibernate 3 filters system-wide. The problem is I don't control Session creation from the SessionFactory, ...

33. filtering search results with AfterInvocationProvider    forum.springsource.org

filtering search results with AfterInvocationProvider Hi, I am planning to implement a simple search engine with iBatis. You can search against a single table at a time and the search results ...

34. Filter config clarification and best practices    forum.springsource.org

Filter config clarification and best practices I've gotten pretty comfortable with a good chunk of Acegi, but I'm still a little confused about the configuration of filters.... or I'd at least ...

35. Filter that Filters on Regular Expression matches URL patter    forum.springsource.org

Filter that Filters on Regular Expression matches URL patter I need to define an HTTP filter to be applied to URLs that I want to define with a regular expression. The ...

36. Standard injection into Servlet/Filter    forum.springsource.org

I understand how dependency injection gets works for beans configured in Spring, but what is the standard approach to accessing a spring managed bean from a servlet or filter? I'm not ...

37. Filters not working on Easerver?    forum.springsource.org

Hi all, I've an application successfully deployed on JBoss. Now for the integration test it should be deployed on Easerver 5.2 or 5.3 It seems the security filters are not working. ...

38. Filter problem    forum.springsource.org

Hi I'm attempting to integrate Acegi Security with Josso, but have ran into a problem with the JossoProcessingFilter. I've got a filter which should respond to josso_security_check, but when Josso does ...

39. unauthenticated request allowed up the filter chain after login page redirect    forum.springsource.org

I have Acegi configured so that access to index.html requires a user authenticated via a form. When I try to access index.html, one of the Acegi filter sends a redirect to ...

40. Remember me without filter.    forum.springsource.org

Hi, I am trying to implement authentication in JSF bean instead of in the filters. I can have everything working but the "remember me" feature. I am trying to use the ...

41. how to use AnonymousProcessingFilter.applyAnonymousForThisReq uest() to filter subne    forum.springsource.org

how to use AnonymousProcessingFilter.applyAnonymousForThisReq uest() to filter subne Hi, All I overrided the method applyAnonymousForThisRequest() to return false if remoteIpAddress is not in a configured range. This way , I can ...

42. RememberMeServices on all filters?    forum.springsource.org

The RememberMeProcessingFilter obviously needs a RememberMeServices, but what about AuthenticationProcessingFilter? It also has a property for RememberMeServices, but I'm pretty certain that I got it working without setting that property on ...

43. Filter not applied when having parameters    forum.springsource.org

Hi, I noticed today, during a timeout, that acegi security is not applied to URLs with query parameters. My objectDefinitionSource is defined as follows: Code: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /login.jsp=ROLE_ANONYMOUS ...

44. Filtering domain objects based on acls    forum.springsource.org

Filtering domain objects based on acls Problem Description: ------------------------ I have this domain object graph: Person { public int getId(); //Unique id for each person in the directory public Set getAddresses(); ...

45. interceptor with filter; how?    forum.springsource.org

interceptor with filter; how? I have the following url-mapping: Code: conrexController conrexController addContactForm modContactForm ...

46. exclude list for filter in web.xml    forum.springsource.org

Hi all! i have a litle problem here... i have one filter, but i need to call it just in the pages that have different pattern from *Form.jsp... is it possible ...

47. How to use a couple of acegy filter and how to configure it with spring?    forum.springsource.org

How to use a couple of acegy filter and how to configure it with spring? Hi, Im working on an application whitch need 2 different acegy authentication modules, so I want ...

48. need help in spring filter configuration and usage    forum.springsource.org

I would appreciate if someone has an example of a Spring filter configuration and usage. So far I have not seen any examples on the WEB

49. , what is the difference between using a filter and interceptor?    forum.springsource.org

A HandlerInterceptor gives you more fine-grained control than a filter, because you have access to the actual target "handler" - this means that whatever action you perform can vary depending on ...

50. very hard to diagnose problem with OSIV Filter and LazyInitException    forum.springsource.org

Oct 18th, 2006, 04:18 PM #1 eqe99 View Profile View Forum Posts Private Message Junior Member Join Date May 2006 Posts 10 very hard to diagnose problem with OSIV Filter and ...

51. how to test application filter with spring    forum.springsource.org

I have to do a unit test of filter, but i dont know how do it.... I make test unit for Controllers, where i used MockHttpServletRequest and MockHttpServletResponse, but doFilter need ...

52. Can't get my FilterSecurityInterceptor to filter what I want.    forum.springsource.org

Can't get my FilterSecurityInterceptor to filter what I want. I'm just trying to set up a basic demo on this filter and can't seem to get it to quite work. I ...

53. Create custom filter    forum.springsource.org

Dec 18th, 2006, 02:46 PM #1 davidecr View Profile View Forum Posts Private Message Junior Member Join Date Dec 2006 Posts 13 Create custom filter Hi I'm trying to implement a ...

54. WebApplicationContext in Servlet filter    forum.springsource.org

Take a look at WebApplicationContextUtils and RequestContextUtils. They have methods to retrieve the ApplicationContext for the current ServletContext or HttpSerlvetRequest. Another option would be to configure your ServletFilters as normal Spring ...

55. Problem with Filter    forum.springsource.org

Problem with Filter I am trying to soft delete children from a parent-child relationship. cascade option="save-update" Junit test case public void testCreate() { //create parent with a set of children //retrieve ...

56. explain filters and providers in the code    forum.springsource.org

explain filters and providers in the code Please explain the following code. sapient1=password1,ROLE_ANONYMOUS foobar CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /website/customer/**=httpSessionContextIntegrationFilter,website.exceptionTranslationFilter,filterInvocationInterceptor/*with gwt*/ ...

84. Function of filter Attribute in http    forum.springsource.org

From the schema: "The filter list for the path. Currently can be set to 'none' to remove a path from having any filters applied. The full filter stack (consisting of all ...

85. adding own filter    forum.springsource.org

Hi, I would like to replace the AUTHENTICATION_PROCESSING_FILTER. I added something like this to my security-config.xml, based on the developer guide: Code: and to ...

86. Using filters in tests    forum.springsource.org

Using filters in tests I am hoping someone here can point me in the right direction. I've been fighting with this for two days now.. I am using Spring 2.5 and ...

87. Pipes and Filters    forum.springsource.org

Pipes and Filters Greetings, I'm just getting acquainted with Spring Batch, and am wondering how to best implement the pipes and filters pattern with the API? It would seem natural that ...

88. Alternative to URL filtering    forum.springsource.org

Alternative to URL filtering The current and tag depend on URL pattern to do the filtering. The problem right now, our application doesn't have a URL('coze it uses ...

90. Login Filter Config    forum.springsource.org

Jun 18th, 2008, 11:20 AM #1 difranr View Profile View Forum Posts Private Message Member Join Date Jul 2005 Posts 63 Login Filter Config I think I have the config wrong ...

91. custom filter chain + use of intercept-methods fails    forum.springsource.org

custom filter chain + use of intercept-methods fails Hello, I have made a custom filter chain using spring security 2.0.2 and now I'm trying to use the intercept-methods tag on one ...

92. Replace a default filter    forum.springsource.org

93. Adding a simple servlet filter using Spring    forum.springsource.org

Adding a simple servlet filter using Spring I'm experienced with Spring but not with using it in a web context. I have implemented a Servlet and have to authenticate users by ...

94. filter customization    forum.springsource.org

Hi, all: I'm new to spring-security. I wonder whether it's possible to customize filter using new syntax (namespace configuration), say setting hideUserNotFoundExceptions to false, and how? thanks in advance!

95. Logout Filter...    forum.springsource.org

Logout Filter... Hi, I'm building an application which has requirements to cater to two different groups of people. These two groups have their own sets of pages that they need to ...

96. getAuthentication() returns null in servlet filter    forum.springsource.org

getAuthentication() returns null in servlet filter Hi, I'm currently working on a web app which contains a plain old servlet filter, as defined in web.xml on tomcat: Code: IPS Security ...

97. Autowiring the servlet filter    forum.springsource.org

Autowiring the servlet filter I am trying to autowire a bunch of dao objects in my custom servlet filter and for some reason, autowiring does work with controllers but does not ...

98. File upload - filtering file types    forum.springsource.org

File upload - filtering file types In our portal, we have a feature to upload the image file. Everything works just fine. I need a feature, wherein in the file upload ...

99. Filtering form:select help    forum.springsource.org

Hi, I'm using spring 2.5.5 and I have an issue with form:select. I have a drop down list (countries) and I want to put a filter on it for easy to ...

100. how to not filter included page on Faceletes page    forum.springsource.org

how to not filter included page on Faceletes page Hello; Im using JSF and Facelets, the login page use Facelets template located inside WEB-INF directory. when the login page is rendered, ...