Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT vs JSP

 
Mathew Kuruvilla
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know anything about XSLT, but I do know a little bit about JSP.
I need to use data given as input in the XML format and generate 1 or more graphs based on user request and the data from the input. The input is from a file and all the java code resides in a servlet.
1) Which technologies are best for this?
2) Which books are best for this?
Thanks.
Mathew
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you were just re-formatting the data text, XSLT would do the trick, but since you have to do some computation, stick with java for XML processing.
Your first decision is whether to use DOM style parsing or SAX style, so the first question is, how big is the data? are we talking megabytes or kilobytes here?
I would certainly develop a "JavaBeans" style component(s) to read the data and generate the graphs so you can test it outside the servlet envrionment.
There are LOTS of XML & Java books, typical servlets books now include chapters on XML since it has become so important.
Bill
 
Mathew Kuruvilla
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently, the data is only kilobytes of data. I doubt if it will go to megabytes of data.
What about Scalable Vector Graphics SVG (Stylesheets) vs. JSP. I am only getting my feet wet in XML, so please excuse dumb questions. :-)
Mathew
 
Greg Whelan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending upon the type of graphs you're trying to generate you might find MonkeyBoyGraph useful:
http://monkeygraph.sourceforge.net/
Regarding books, I found Brett McLaughlin's "Java & XML" (O'Reilly) book to be a fantastic intro.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic