• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javascript, servlets and SVG

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i hope i am posting this question in the right forum.
in an application i am developing, the user selects an input map
(in SVG format)[eg; map of India], a couple of data files
corresponding to the map he has chosen[area.txt and population.txt],
and some calculation he wants to be done [finding density]
the user make all these selections using a HTML form and
submits it to a server. on the server side, servlets extract the data
values from the input data[extract the area and population values of
each state from the text files], perform the necessary calculations
[calculates density by dividing each area value with the population
value] and obtains a result[ie density for each state].
now based on the result obtained, i want for a particular range of
output data [density], a color to be appplied on the map; for another
range, another color etc.
my questions are:
(1) can i use servlets to do the above coloring or
(2) should a javascript function be used to do the above color mapping
(3) if javascript is to be used, where should this javascript function
be in order to do the necessary calculation?
desperately waiting to hear from you.
thanks in advance.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use servlet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic