Biswa R Nayak

Greenhorn
+ Follow
since Jan 19, 2010
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 Biswa R Nayak

Yes, was resolved. If i remember, i found out the path for Ajax Call was wrong. Unfortunately, the browsers were giving me confusing error instead of saying "Path not found".
10 years ago
JSP
Implement Applet/Swing, and do your encryption there before calling servlet.
Or use encryption using javascript :: which is not robust.
- I do not see any other way of encryption before going to server side, unless SSL is used.
11 years ago
JSP
If i understand well, You want to stop the GIF in your re-directed page once you are done loading the page. May be you can use label/div to show or hide your gif. if you popup is showing onload, you can write the hide gif code on page onLoad.

Hope this helps.
Same behaviour in IE7, chrome and Firefox
11 years ago
JSP
This is what i got from main page using HTTPFox
JSESSIONID 1581B487E1E36491447142824236D286
JSESSIONID D86161A444D1B7C713D442325234D440

and in Ajax Call :
JSESSIONID D86161A444D1B7C713D442325234D440


when i print getId() in main page , i get 1581B487E1E36491447142824236D286
and when i print in Ajax , i get D86161A444D1B7C713D442325234D440

but in other ajax calls i get both the jsessionID

what is happening?

11 years ago
JSP
well, finally name is changed. I had to put m.i in my first name. dash was because my name is taken in java ranch.
-- thanks for your suggestion on tool. I will get back with result after sometimes.

biswa.
11 years ago
JSP
Thank you for your answer.

I am surprised myself with the behaviour of Ajax.

This is what i do to check session variable.

String strMyVariable = (String)request.getSession(false).getAttribute("myVariable");
if(strMyVariable == null) {
return "Invalid Session. Please login again.";
}
//continue processing..

This piece of code works well in all Ajax except few. I have no clue, because when i page submit the main page, I am checking the session using same code, and session is valid.

I printed the session Id in Ajax Call, it gives me different ID from the session ID in main page.

"Inspect the request/response and headers to find out when the wrong session info is being exchanged." I do not understand how i can do this?

Thanks.
11 years ago
JSP
Hi,
In all my pages, i am using same ajax interface to list the users in database when name is typed in a search input box. All Ajax works fine, except in few jsp pages. In those
pages when i type, ajax call gets the wrong session. Due to wrong session I can't get the session values and authentication in ajax fails. But in Main page, when i do page submit, session is there. I can get session objects upon page submit.

I have no clue how to fix this issue. Almost all my ajax call working perfect with session. I checked all ajax codes are exactly the same in all the pages. I am wandering why ajax in some pages are behaving different.

Regards,
Biswa.
11 years ago
JSP