O'Reilly logo

Java™ Drawing with Apache Batik: A Tutorial by Alexander Kolesnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The SVG Graph Web Application

In this chapter we build a web application that receives user input through an HTML form and draws a graph on the browser. Figure 7.1 shows the HTML form. It prompts the user to enter a name and a date.

Figure 7.1. The HTML form for our application

The source code for the form is presented in Listing 7.1. This is a JSP page with several JSTL tags.

Listing 7.1. The user input form (index.jsp)
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <html> <head> <title>SVG Graph</title> </head> <body> <h1>SVG Life Graph</h1> <form action="DrawGraph" method="post"> <table> <tr> <td>Name:</td> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required