question « Filter « JSP-Servlet Q&A





1. question about filter in tag?    coderanch.com

2. Filtering Question    coderanch.com

I want to do authentication in a ServletFilter. I mapped the filter to /* in the deployment descriptor. In the doFilter method, I say, if you are not logged in, then you are forwarded to the login page. The problem with this is that the images that I am trying to display on my login.jsp page will no longer show up ...

3. Simple Servlet Filter Question    coderanch.com

Step 4: The filter may invoke the next entity in the filter chain. The next entity may be another filter, or if the filter making the invocation is the last filter configured in the deployment descriptor for this chain, the next entity is the target Web resource. The invocation of the next entity is effected by calling the doFilter method on ...

4. Servlet filter question    coderanch.com

I created a simple filter to set the vendor array list to all my requests since all my servlets will need this list. I wanted them the have a fresh list for every request. The thing is that i am doing a printout and i see the VendorDB.selectVendors() being called 30 times. Also i have some javascript on my links for ...

6. Servlet Filter question    coderanch.com

8. Interview question: What's the difference between and Servlet and Filter?    coderanch.com

Filter is used for filtering the request and perform some action like authenticity of session, user is valid or not for that request, etc. Servlet is used for performing the action which needs to be taken for particular request like user login, get the response based on user role, interacts with database for getting the data, business logic execution, etc. Filter ...