I am Having a search(text) box and button. if we press the button a window should be open.(window.open()). but my requirement is....
(1)i have a map in session already so that when i press this button all the users available in the map should be populated in the newly opened window and
(2)when we selected that user then user name should be displayed on the text box.
how to populate session map values in newly opened window and after the selection of the user his name should be displayed on the text box.
Does Java Script have a capability of populating the sessionMap Values? I mean in java script function can we access sessionMap values??? Here i am trying to open a new window using JavaScript method.(window.open).
I think you are trying to implement a pick list kind of thing..
So in the second page, you want to present a list of users , when a particular user is selected, his name should appear in the opener screen.
If this is what you want, then for second page, just treat it as a normal jsp page & retrieve the list of users from session using JSP elements only.
Best way would be EL. render the user names as hyper links, on click on them, execute a javascript function that will update the opener form field with the selected value.
you can use window.opener.<<formid>>.<<elementid>>.value= <<selected value>>