Mar 24th, 2011, 03:38 PM
Creating a beans with a jsp
sorry if i'm not writing in the good place, it's my first time . First, I'm using Spring Web MVC with annotation. What I'm doing is i'm sending a html-email using a MimeMessage and a MimeMessageHelper. Currently, my text is in a properties files, and I created a bean linked on this file so I can use it in my sendMail service. It works fine.
But, what I would like to do is to have my html message in a jsp page, and to be able to set the text of my MimeMessage with whit jsp page. In this way, it would be easier to edit the email text.
Is it possible ? Can I create a bean containing the html contained in the jsp ? Thank you for your help !
Tags for this Thread