Results 1 to 2 of 2
- 11-26-2010, 01:17 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 2
- Rep Power
- 0
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
- 11-26-2010, 01:36 PM #2
Member
- Join Date
- Nov 2010
- Posts
- 11
- Rep Power
- 0
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
-
How to check file existence and rename file with little modification
By Basit56 in forum New To JavaReplies: 5Last Post: 10-17-2012, 11:07 AM -
how to check jsp or servlet?
By waqar100 in forum New To JavaReplies: 2Last Post: 06-04-2010, 05:39 AM -
Upload file to servlet and pass file to another servlet
By hofsoc in forum Advanced JavaReplies: 6Last Post: 06-05-2009, 12:09 AM -
Tanuki Wrapper.conf script
By MeathUltra in forum Advanced JavaReplies: 0Last Post: 10-20-2008, 01:26 PM -
Is there any way to transfer the file Streams from one servlet to another servlet .
By HenaPriyadarsini in forum Java ServletReplies: 0Last Post: 08-30-2008, 12:52 PM
Bookmarks