Help coderanch get a
new server
by contributing to the fundraiser

Srivatsan Varadarajan

Greenhorn
+ Follow
since Jul 07, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Srivatsan Varadarajan

I am writing a class to retrieve a userid/password object. I want to store this value as a static variable so that its retreived only once. I am confused if synchronization is needed or will it not matter since the same value would be returned regarding of any thread accessing it. This is my class below. Is there any purpose achieved in synchronizing the getAppUser1 method?




I am trying to display a special character � in plain text. Can I do that?
Thanks Bill for replying during the weekend. There is first an application url that the users go to and this goes through our LDAP server where the user-id is verified and we have a request header called "user" set there. So, what essentially we are trying to do in our filter is to check for the presence of that request header, "user". For some reason, when we print out all the request header name and value, that "user" request header is not among them. But I know for sure that the request header , "user" is set because I took the same code that I wrote in filter and put it in the struts action class and print out all the names and values, it is present. So, I don't understand why the filter and the action class are getting totally two different request objects. I have only one filter that checks for that "user" request header. Please let me know if I can provide any more details. I really appreciate your help.
18 years ago
I am using a filter to check the login access to my application. Before It comes to the filter, the user -id is already set in the request header as one of the attributes. But, by the time , it gets to the filter, I lose that header. The reason why I say that I am losing the header name is this: I took the logic and put that in my action class and print out the header and it totally works. Should it be the same request that gets passed either way? I would really appreciate somebody's help.
18 years ago