Does groovy have an easy way to get a filename without the extension?

I believe the grooviest way would be: file.name.lastIndexOf(‘.’).with {it != -1 ? file.name[0..<it] : file.name} or with a simple regexp: file.name.replaceFirst(~/\.[^\.]+$/, ”) also there’s an apache commons-io java lib for that kinda purposes, which you could easily depend on if you use maven: org.apache.commons.io.FilenameUtils.getBaseName(file.name)

What is the difference between creating JSF pages with .jsp or .xhtml or .jsf extension

JSP is an old view technology and widely used in combination with JSF 1.x. Facelets (by some people overgeneralized as XHTML) is the successor of JSP and introduced as default view technology of JSF 2.x at end of 2009. When you were seeing JSPs, you were perhaps reading outdated books, tutorials or resources targeted on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)