Browse Source

Pom cambiado...

master
Cristobal Bernal Mayordomo 2 years ago
parent
commit
aab0c1ef81
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/java/com/cristobalbernal/foro/controlador/controlador.java

+ 1
- 0
src/main/java/com/cristobalbernal/foro/controlador/controlador.java View File

@ -16,6 +16,7 @@ public class controlador {
model.addAttribute("mensaje","Ramoncin"); model.addAttribute("mensaje","Ramoncin");
String dominio = requestURL.getHost(); String dominio = requestURL.getHost();
int x = dominio.indexOf("."); int x = dominio.indexOf(".");
int y = dominio.indexOf(".");
String conDominio = dominio.substring(0,x); String conDominio = dominio.substring(0,x);
model.addAttribute("dominio",conDominio); model.addAttribute("dominio",conDominio);
return "index"; return "index";


Loading…
Cancel
Save