I'm new to JSP, so naked with me. I have a JSP where I use a javascript structure to build a chart using the Google visualization API.
My servlet returns a hashmap sales object with a year as a key and an integer (sales number) as a value.
My javascript uses a sales object to add data to the Google chart API, which builds my chart. the code:
sales = '<%= session.getAttribute("sales") %>';
The sales object in my js gets a hashmap, but this is a long string. Should I parse it in my javascript or is there a way in which it will automatically place the hashmap object in the javascript sales object?
java javascript jsp servlets
asdfasdf
source share