i will provide a code for magic square. you have take servlet package and make a t class from the html class you have to request to another class after entering the values. in this its dealing with servlets
using Apache tom cat.
you can use the presentation i uploaded with this .
We are group of people working on PHP,CI,WordPress,Joomla projects and committed to provide excellence in IT field.
I hope our skills would help you to accomplish project as per your expectation.
Hope to hear from you soon.