Results 1 to 5 of 5
  1. #1
    vijay_p is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default how to filter browser response using java program?

    Hi all,
    I want to develop an application explained below.

    When user submitting request/URL from browser it is hitting the server and giving response in general but,i want to stop response coming from server and i need check it(response) contains bad keyword or data . If it contains bad data , i need to display error message on browser other wise it will give normal response to user.

    Any one please help me regarding,

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: how to filter browser response using java program?

    you can use js or use ServerFilter or use some web frameworks which supports validations date.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default Re: how to filter browser response using java program?

    I am not sure how you really going to solve this with Java (unless use of JSP, etc.)

    However, you can achieve the same with AJAX calls between the server and the client. You can do all the validations you want easily, on both sides.

  4. #4
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default Re: how to filter browser response using java program?

    Use LiveConnect to call on JS functions to return browser type.

  5. #5
    vijay_p is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: how to filter browser response using java program?

    Quote Originally Posted by ozzyman View Post
    Use LiveConnect to call on JS functions to return browser type.
    I don't need browser type , i need browser response to filter based on keywords .

    thank you for reply .
    Last edited by vijay_p; 12-30-2011 at 08:43 AM.

Similar Threads

  1. Java program to get the Browser Url ?
    By manoranjan* in forum New To Java
    Replies: 2
    Last Post: 09-21-2011, 01:41 PM
  2. Replies: 0
    Last Post: 04-07-2011, 04:09 PM
  3. Replies: 0
    Last Post: 11-04-2009, 10:09 PM
  4. How to avoid response being commited in filter
    By touchsky88 in forum Advanced Java
    Replies: 1
    Last Post: 05-20-2009, 05:42 AM
  5. Any ideas to create a filter program?
    By paulachrist in forum New To Java
    Replies: 4
    Last Post: 07-11-2008, 04:53 AM

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
  •