you can do this with Java, you can do this with PHP and MySQL.
Process info through PHP --> store info in mySQL database --> convert mySQL table to Excel.
you can search for a generic function for converting MySQL tables to Excel.
you'll have to learn PHP, and mySQL. But this should work.