calling javascript function after jsp script execution
I am using jsp for scripting. I have a page where I collect data from dropdown boxes and radio buttons and then form a query based on data inserted by the user. 

I then hit the url(query here is append to a url i.e a query string) and in return I get an xml file. 

I parse the file and formulate it in a particular way in a string which I need to pass it to a javascript function, that renders the graph based on passed values. 

I wanted to know how/where should I call the javascript function and pass the JSP string to it so that it can render the graph. 

I have tried putting it on OnClick event in the html form but I am not sure if it's the correct way of doing it. Please let me know how can I go about this porblem. 

Form


calling javascript function after jsp script execution
===

I am using jsp for scripting. I have a page where I collect data from dropdown boxes and radio buttons and then form a query based on data inserted by the user. 

I then hit the url(query here is append to a url i.e a query string) and in return I get an xml file. 

I parse the file and formulate it in a particular way in a string which I need to pass it to a javascript function, that renders the graph based on passed values. 

I wanted to know how/where should I call the javascript function and pass the JSP string to it so that it can render the graph. 

I have tried putting it on OnClick event in the html form but I am not sure if it's the correct way of doing it. Please let me know how can I go about this porblem. 

Form

