Viswa Rama

Greenhorn
+ Follow
since Mar 19, 2012
Merit badge: grant badges
For More
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 Viswa Rama

Hi Experts,

Scenario:

1. when i click a drop down box from JSP form select -> it calls a java script method -> which in turn makes ajax post request to servlet using jquery.
2. I receive the strings from servlets and append the options into the select.

Issue:
1. When i first click on the dropdown select, its showing none. - what is happening is its making the ajax call, however because the drop down is getting closed immediately, I am not able to see the data until i click this second time.
2. Secondly, because I used onclick event to run this script, every time i click the drop down, it keeps appending the options cumilatively.

Code:

HTML:


SCRIPT:


Your prompt will greatly be appreciated.

Thanks
Viswa.

Amith,

I am in the page same page. May be my wordings are little amateur. Your explanation gives a lot of clarity though.

Thank You
12 years ago
Tim,

Thanks for your quick reply and it was a good piece of information.

I am able to see the session object in the other servlet. So the httpsession's scope is across webapp, not just servlet cool.

Thank you so much.
12 years ago
Hi I have 2 servlets, Authentication Servlet and Application Servlet. I am checking user credentials against active directory (LDAP). Upon successful login attempt, user is redirected to the right welcome page. In the welcome page, I have a form with a submit button. When the user submits the form, it will hit the Application Servlet's doPost(). My question is, how will i check if the user's session is active before serving the form request?

I only have the session object available in Authentication Servlet, but my application Servlet does not know about it. Do i need to maintain any persistance in my code apart from the HttpSession's API? Can someone help me?

Thanks
12 years ago