Results 1 to 4 of 4

Thread: servlet filter

  1. #1
    redforce.bala is offline Member
    Join Date
    Sep 2010
    Posts
    23
    Rep Power
    0

    Exclamation servlet filter

    I am having a doubt with servlet filter.

    If a user enters Google in browser i need to intercept the user request using filter and send the reuest through my server and the same if the resoponse comes from the server i need to intercept the response and i want to add something in the response and send the response back to the client..

    By using the servlet filter we can do this.But i don know how to redircect the user request to my application server..

    I am using apache tomcat and eclipse.

    can any one give me an idea..thanks in advance..

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,830
    Rep Power
    19

    Default

    That call to Google from the client browser will go nowhere near your website server...so you have no chance of intercepting it.

  3. #3
    redforce.bala is offline Member
    Join Date
    Sep 2010
    Posts
    23
    Rep Power
    0

    Default

    then what is the way to do that..

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,830
    Rep Power
    19

    Default

    I was subtly implying that your requirements are not possible.

    Put it this way...client is viewing your website, each click on a link that refers to your website goes to the server serving that website (and any relevant servlets, interceptors, whatever). Client now types in "www.google.com" into their browser...this call goes nowhere near your server, it goes to one of Googles servers.

Similar Threads

  1. Replies: 1
    Last Post: 12-02-2008, 12:23 AM
  2. servlet filter authentication
    By pradeepprathyu in forum Advanced Java
    Replies: 0
    Last Post: 11-22-2008, 11:10 AM
  3. web content filter or internet filter
    By sundarjothi in forum Advanced Java
    Replies: 3
    Last Post: 05-15-2008, 11:36 AM
  4. servlet Filter problem
    By saint_jorjo in forum New To Java
    Replies: 1
    Last Post: 03-13-2008, 12:05 PM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •