File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes javascript, servlets and SVG Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript, servlets and SVG" Watch "javascript, servlets and SVG" New topic
Author

javascript, servlets and SVG

Ella Rath
Greenhorn

Joined: Apr 19, 2004
Posts: 17
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.
Alan Ford
Ranch Hand

Joined: Oct 26, 2003
Posts: 107
Use servlet.


TNT<br />MCP, SCJP 1.4,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript, servlets and SVG
 
Similar Threads
using servlets on data from text files?
extracting data using JSP
using servlets here??
servlets and maps
servlets and text file data