#55 added nav controller
parent
3e5aeaf290
commit
db43da9ec0
@ -0,0 +1,18 @@
|
||||
package ru.ulstu.conference.controller;
|
||||
|
||||
import org.springframework.validation.Errors;
|
||||
|
||||
public class NavigationController {
|
||||
|
||||
public static final String REDIRECT_TO = "redirect:%s";
|
||||
public static final String CONFERENCES_PAGE = "/conferences/conferences";
|
||||
public static final String CONFERENCE_PAGE = "/conferences/conference";
|
||||
|
||||
public static String hasErrors(Errors errors, String page) {
|
||||
if (errors.hasErrors()) {
|
||||
return page;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue