There is a requirement where we need a simple form with different fields including file upload. On form submission an email should be sent with the file as an attachment.
While searching the net, the best way I could find was using JSP and servlets and calling a bean from JSP page (form action).
I checked in a simple JSP file and it works (I have enabled the JSP and servlets), but have no clue how to integrate with a backing bean. Where should I place my backing bean ? Java class ? in the Content Server. I am not using a component, rather checking a JSP file directly.
Is there a better way to accomplish this functionality ?