Dear All, We have an email template which needs to be processed using Java. We have to replace the variables in the template with actual values. We were able to achieve this using pattern matching , ie; by searching the template for particular patters and replace them with actual values. Now we need have conditions in the XML file.For example
$if($subject!=null)
sample subject
$endif
We need to check for this condition also. subject
is a variable whose value needs to be repalced.
We are not allowed to use Velocity template processor.
Please suggest the best ways of implementing this.Is it good to have to ways of parsing it, like applying values for variables in the first parse and then checking the logic in the second parse. It will be of great help if anyone can provide their valuable suggestions.