I am creating a website for work using a Tomcat Web Application. One of the pages requires the user to enter their name, email, and phone number. From that point I need to grab the values from each field, generate a PDF, and email it to the user.
I suspect this is going to be a large chunk of Java code, so I'd rather do it by calling methods in a .class file rather than using
<% /* code here */ %>
What is the best way of going about something like this?
I am currently using an MVC approach, found here http://simple.souther.us/ar01s06.html, although I believe I am over complicating the process.
I just need to simply grab text fields, run a Java method (lots of Java code), then display "The PDF has been sent to EMAIL".
Thank you for the help.