Skip to main content
0 votes
1 answer
60 views

I'm working on a Spring Boot + Thymeleaf application where I have an edit page. In my controller, I want to use different DTOs for the GET and POST methods: ResponseDto for displaying data and ...
NONAME's user avatar
  • 63
2 votes
0 answers
72 views

@JvmInline value class Email( @field:Size(max = 100) @field:Email val value: String, ) data class RequestVerifyEmail( val email: Email . . . ) @PostMapping fun verifyEmail(@...
hyungchan kim's user avatar
0 votes
1 answer
47 views

We are getting a request from 3rd part and in our logs the body is printed like this "body":"Response=%7B%22TransactionType%22%3A1%2C%22Approved%22%3Afalse%2C%22TransactionIdentifier%22%...
Arun Sudhakaran's user avatar
0 votes
1 answer
60 views

View(design.html): https://github.com/habuma/spring-in-action-6-samples/blob/main/ch05/taco-cloud/src/main/resources/templates/design.html ... <form th:method="POST" th:object="${...
tomwang1013's user avatar
  • 1,445
0 votes
1 answer
1k views

I have a Spring Boot controller method that handles file uploads, and I'm trying to use the @ModelAttribute annotation to bind some fields from the request. Here's my controller method: @PostMapping(...
Yasiru Deshan's user avatar
0 votes
1 answer
102 views

Should the name of a @ModelAttribute be the same as a model before it would be saved in a session? I have a an attribute with a different name from the model but it is not saving in the session. ...
Nitro Ganny's user avatar
0 votes
2 answers
1k views

i'm very new in spring mvc so i have very confused about how @modelAttribute work in spring mvc and i have situation right down my JSP: <%-- Document : login Created on : Apr 3, 2023, ...
Daniel's user avatar
  • 23
1 vote
1 answer
238 views

I need your help to solve a @ModelAttribute problem qith a java Map object. Context The following REST Controller expose a POST api that accept a wrapper dto. @Validated @RestController @Slf4j @...
Nicolas's user avatar
  • 175
0 votes
1 answer
372 views

I'm unable to fetch the values from Controller(Home.java) to View (home_view.jsp) in Spring Boot. home.jsp <body> <div class="container mt-10"> <form ...
sanaka's user avatar
  • 37
3 votes
0 answers
757 views

I have an rest API whose request payload is an object(POJO). The structure of the object is defined below: @Data public class ExtractionRequest implements Serializable { private static final long ...
Happs's user avatar
  • 125
0 votes
1 answer
837 views

I am trying to create a new Movie. This means that I want to access the "addMovie" URL, to generate a form in which I add the title of a new movie. This title should be stored in a movieDTO ...
Nexx's user avatar
  • 61
1 vote
1 answer
226 views

In Spring I know I can bind thymeleaf form inputs to a command object using @ModelAttribute in the controller, but is there an equivalent in Micronaut? I can't see it documented anywhere
ja989898's user avatar
1 vote
0 answers
173 views

I'm getting a NullPointerException in these @ModelAttribute variables. Here is my code: @RequestMapping(value="/newUser", method=RequestMethod.POST) public String newUser(@Validated @...
Gu160's user avatar
  • 11
0 votes
1 answer
532 views

I have a form for editing a user, the user has roles, which are a list of objects of type Authority, I want to be able to use checkboxes (optional) to set the roles that the user will have, but I have ...
R. Shuhart's user avatar
1 vote
1 answer
845 views

Here is my controller: @CrossOrigin(origins = "http://localhost:3000") @RestController @RequestMapping("/api/v1/employees") public class EmployeeController { @Autowired ...
Brian Antiqueña's user avatar

15 30 50 per page
1
2 3 4 5
21