Hi all,
Can someone suggest me on how to pass the object from the server side(
servlet) to the jsp.Precisely.i have a form having a textfield for entering a person's name and a 'process' button.I have called a js function (using ajax) on the click of the button,the persons name goes to the server and fetches information like,organization,date of birth and a
String array( having the names of the person who work under him).The object information is displayed correctly in the servlet.Now how do i pass the bean object(organization,dob,stringarray) into the js function and display the information in the jsp.i tried request setattribute and getattribute but i am not sure whether it works on onclick of a button.Is JSON something which i should look upon.Someone guide me please.
Thanks in advance
Ajay