Dynamically generating a email template in Struts 2

后端 未结 1 634
无人及你
无人及你 2021-01-07 06:32

The scenario is that a user request a leave. When he request leave then a email is send to the approver and the user containing the details about the leave. I am Stuck at th

相关标签:
1条回答
  • 2021-01-07 07:23

    Just use some template engine to create template and populate it with your data. Take a look at FreeMarker template engine http://struts.apache.org/2.x/docs/freemarker.html. It is used in Struts2 by default so there is no need to add it separately.

    0 讨论(0)
提交回复
热议问题