Groovy XmlSlurper for HTML Parsing

Very common task: you need to parse XML. When using groovy there is groovy.util.XmlSlurper for that. We know that HTML is just a special XML – but when you have to parse from online ressources you have to assume that it’s never … Continue reading
[shareaholic app="share_buttons" id="7441992"]

Grails Mail-Plugin and Custom EmailerService

Just had an old project that got both Grails Mail-plugin installed and also a custom EmailerService implemented. Problem was that both approaches are configuring a org.springframework.mail.javamail.JavaMailSenderImpl in two different ways. Grails Mail-Plugin was doing it via following Closure: [groovy title="grails-app/conf/Config.groovy"] grails { mail { … Continue reading
[shareaholic app="share_buttons" id="7441992"]