Results 1 to 2 of 2
  1. #1
    vali786 is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default Using .conf file URL check in java/servlet

    Hi Friends,

    Please share code to develop Allow/Deny for specific url check.
    Requirement :
    The check for the url could be done by a service servlet/jsp . The client could send the creation url entered by the user as a Http Get/Post and then the servlet can send a response something similar to 'Security check - url failed' or 'passed' after verifying the url that has been sent.

    Also, the format of the configuration file 'test.conf' could be similar to 'httpd.conf' used in apache server.(Specify Allow/Deny for specific url patterns).


    Thanks,
    Gouse

  2. #2
    jeev81 is offline Member
    Join Date
    Nov 2010
    Posts
    11
    Rep Power
    0

    Default reply...

    Hi,

    Assuming that the user enters the URL which needs to be checked in the JSP page , the way I would be doing it is to validate the entered URL using AJAX to do the validation part.

    The URL 's can be read from the conf file using properties() method and stored in an arraylist and the arraylist can be checked for the particular URL entered. The response sent back from the validating page would depend on the URL.

    I hope this is what you have in mind.correct me if I am wrong.

    Regards,
    Rajeev

Similar Threads

  1. Replies: 5
    Last Post: 10-17-2012, 11:07 AM
  2. how to check jsp or servlet?
    By waqar100 in forum New To Java
    Replies: 2
    Last Post: 06-04-2010, 05:39 AM
  3. Replies: 6
    Last Post: 06-05-2009, 12:09 AM
  4. Tanuki Wrapper.conf script
    By MeathUltra in forum Advanced Java
    Replies: 0
    Last Post: 10-20-2008, 01:26 PM
  5. Replies: 0
    Last Post: 08-30-2008, 12:52 PM

Posting Permissions

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