Last change
on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 2 years ago |
proekt
|
-
Property mode
set to
100644
|
File size:
844 bytes
|
Line | |
---|
1 | package com.proekt.Controller;
|
---|
2 |
|
---|
3 | import com.proekt.Repository.NajavaRepository;
|
---|
4 | import org.springframework.stereotype.Controller;
|
---|
5 | import org.springframework.ui.Model;
|
---|
6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
7 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
8 | import org.springframework.web.bind.annotation.RequestParam;
|
---|
9 |
|
---|
10 | @Controller
|
---|
11 | @RequestMapping("/register-info")
|
---|
12 | public class RegisterConfirmation {
|
---|
13 |
|
---|
14 | @GetMapping
|
---|
15 | public String getRegisterPage(@RequestParam(required = false) String error, Model model) {
|
---|
16 | if(error != null && !error.isEmpty()) {
|
---|
17 | model.addAttribute("hasError", true);
|
---|
18 | model.addAttribute("error", error);
|
---|
19 | }
|
---|
20 | model.addAttribute("bodyContent","registerConfirmation");
|
---|
21 | return "master-template";
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.