i have a jsp page... i am adding some content to page dynamically depending upon request parameters (an array will be returned by request) based on this i have to create a drop
If the javascript is inline or declared in the same jsp page, there is no problem. Something like:
If it is in a separate .js file, then you should serve the .js file through a special servlet.