--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To post to this group, send email to caelum-...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vrapto...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/caelum-vraptor?hl=en.
@Component public class CustomPathResolver implements PathResolver { @Override public String pathFor(ResourceMethod method) { final Class<?> cls = method.getResource().getType(); final String clsName = cls.getSimpleName(); final Package pkg = cls.getPackage(); final StringBuilder s = new StringBuilder(60); s.append("/WEB-INF/jsp/"); s.append(StringCommom.substringAfterLast(pkg.getName(), ".").toLowerCase()); s.append("/"); s.append(StringCommom.stringRemove(clsName, "Controller").toLowerCase()); s.append("/"); s.append(method.getMethod().getName().toLowerCase()); s.append(".jsp"); return s.toString(); } }