The two principal ways are either to a) use the JFreeChart API to create a chart and write it to a JPEG file which your
JSP page can then link to, or b) use a library like cewolf that puts a tag library wrapper on top of JFreeChart (see the link in my signature).