Karthik Vijayarajan

Ranch Hand
+ Follow
since Mar 13, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Karthik Vijayarajan

Hi,
I was trying to implement Captchas in my app. Image Captchas were fairly straight-forward to implement with API's like SimpleCaptcha and JCaptcha. Audio Captchas were not .
JCaptcha has some support for audio captchas but is not well documented. I could not find any sample code. All i could establish so far with JCaptcha was this:

I could not proceed further. If you have got past this or if you have implemented any other audio captchas, can you please help? Thank you.


Thank you for the response.
I thought the first filter's[LevelMatchFilter] configuration establishes what the DenyAllFilter would do. The configuration doesnt seem to be posing any problems though. I guess since the LevelMatchFilter configuration returns "ACCEPT", the DenyAllFilter is not consulted at all. Thank you.
Hi,
I am trying to understand some Filter configurations in log4j xml. I came across this code in my application which sounds little confusing to me.


If my understanding is right, the first filter LevelMatchFilter says that Log4j should log all requests that are at level TRACE and should not consult remaining filters. I cant quite get as why i need the second filter DenyAllFilter. Can you please throw some light? Thank you.

[ September 02, 2008: Message edited by: Karthik Vijayarajan ]
[ September 02, 2008: Message edited by: Karthik Vijayarajan ]
Hi,
I came across some code that declares the datasources using <resource-ref> in web.xml.

If my understanding is correct, the resources declared in web.xml cannot be used outside of the web project. Say, for example i create two projects WebProject and ServiceProject. Will the resources declared in the web.xml(WebProject) be available in the ServiceProject? Thanks.
13 years ago
Thanks for your thoughts.
Your inputs were very helpful. I guess i could have done better with the API . I missed the Transport class.
13 years ago
Hi
This is my first shot at the JavaMail API. As i understand, one can register the host details in JNDI and can access the same to send emails. I am thinking of the Mail Service Providers as Driver Softwares that know Mail Protocols and have the required knowledge to connect to a Mail Server. I guess i can see an analogy between this and JDBC/LDAP connections. I understand that we may pool JDBC/LDAP Connections. My questions are...

1)When we get a Mail Session from the JNDI, are we creating a connection to the mail server? Or, is this any different from the JDBC/LDAP Connections?

2)Is it possible to pool connections to the Mail Server? (Does it even make sense? )

I browsed thru couple of books and also looked at internet. I didnt find anything so far that says "Pool Mail connections".

Thanks for your help.

Thanks
Karthik
13 years ago
I am using Sun One directory server 5.2. I needed to extend the default schema to suit my application's needs.
I would be creating a new structural object class(say ExampleUser) containing user id and password. As i understand, Sun One has a password policy.I was wondering if the password policy is meant for user id's that connect to the LDAP server or can it be applied to my object class ExampleUser which contains user id an password.

From what i read, i guess the password policy is only meant for the user id's that connect to the LDAP server. But i am not sure though. Can someone please throw some light? Thanks.
13 years ago
Hi
I need to be able to update some data in a directory server(using LDAP) and also write to oracle database. I was trying to find out if it is possible to use EJB's Distributed Transaction capabilities. From what i read, the LDAP protocol doesnt specifically state anything about the transaction processing.
If you have come across a work around, please advise. I intend to use Spring's LDAP API. Thanks.
As i understand, the map implementations by itself do not prevent duplicates. You may also want to try out one of the set implementations.
13 years ago
I had tried before by passing null as an argument(but also did something stupid -forgot to uncomment some code ) and it failed..

I corrected my code and passed null. It works great.
Thanks a lot.
13 years ago
Hi
I am using the reflection API for the first time. Looks very interesting and it solves a complex problem for me
I am trying to get access to a method(method has no args). I find some difficulty in using the getDeclaredMethod. The signature of this method is


My method doesnt have any arguments and hence i couldnt use getDeclaredMethod. I assume there would be a way to get method names that do not have arguments.
Can someone please throw some light on this? Thanks.
13 years ago
Hi
I am using Struts 1.3. I would like to use declarative validations for the action forms.
I have a JSP with two buttons - Save, Back. When i click on Save button, i would like to trigger the following validations :required, integer, intRange etc. And when i click on Back button, i wudnt want to use the 'required' validation. But i would still need the other validations like integer, intRange etc. Would it be possible to configure such type of validations in the validation xml? I browsed thru the struts validator manual, but couldnt find anything to relate to this kind of scenario. I contemplated using 'validWhen', but realized that it was meant for a different purpose.

I guess one of the options would be to not use the declarative validation and use the validate method in the ActionForms to differentiate between click of Save and Back buttons(with request parameters).

If you have any thoughts or suggestions, please let me know.Thanks.
13 years ago
Hi
I was trying out some generics in my code. I understand that i cant get away without a warning if i dont specify the type of the collection in 1.5. This is my code and it gives a warning that reads like "Type safety: The expression of type List needs unchecked conversion to conform to List<Integer>".



Can any of you throw some light on whats happening. Is the warning because the return type of the anonymous inner class is Object and the compiler cannot ensure type safety? Is it still safe to leave the code like this?

Thanks
Karthik
13 years ago