I’m new in spring boot. Creating my own website. There was a problem logging in to the app. I’ve tried different methods, I don’t understand what the problem is. When entering an http request, this request appears http://localhost:8088/login?error and displays the Invalid email and password message in the form. The request goes through the database and everything is fine.I need
Tag: spring
Chrome not saving cookies in localhost
I know this has been asked before but none of the solutions named work. I am using Spring boot and React for my webapp, and need to set cookies on the website. I am developing and testing using Google Chrome. When I get the response from the server, the cookie is present and visible. However it is not saved in
How to show loop results on html page in real time Java Spring
I would like to show loop results on html page in real time. I use Java , Spring, thymeleaf, javascript. The loop is below. Instead of system out print I would like it to be displayed on html page. Answer You can do this using Server Sent Events and htmx. First, create a @GetMapping method to expose the SSE channel:
JavaScript only changes text of first iteration with thymeleaf
I hope you are all well. I have a school assignment, and I want to dynamically be able to change the name of a ‘project’. This assignment is about projects. The way I’ve done it right now works with the first ‘project’ from a list of ‘projects’ iterated through with thymeleaf. I’m aware that what I’ve done right now is
Return HTML page with Spring Controller
So, apparently, I’m trying to return an HTML file with help of the Spring Controller. I already have added Thymeleaf dependencies and also tried the following ways to configure it: 1. Anyway, didn’t help, I get Whitelabel Error Page. Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Sun Dec
Is it possible to pass array as props after mounted()?
I have app using VueJS + Vuetify + Spring. I’m getting a travel list from server and I want to display the list of names in a navigation drawer. I created a travelList array and I want to fetch this list of travels before drawerElements passes it to the navigation drawer as a prop. Is it possible? My current code
What is a good way to pass many parameters to controller?
I have an application on Java (Spring framework) and Javascript (AngularJs framework). There are list of objects in the table and two text fields for filtering this objects. Filtering happens on the server side so I pass these values from text fields to @RestController’s method as params and then to the repository method. Client side: Server side: It’s pretty easy
More sort column in JHipster
I try to configure sort column using the rout.ts file of my entity. In the “data” tag I put defaultSort: [‘firstCol,desc’,’secondCol,asc’], but I gave an error. Then I put all in a single String defaultSort: ‘firstCol,desc,secondCol,asc’, but the secondCol is not considered the the query sent to microservice Then I put all in a single String using a char separator
Uploading a file with JavaScript/Ajax to SpringBoot endpoint
I am new to front-end development and am having troubles piecing together a solution for this specific form setup. I have an already created jsp representing this instance creation page. It’s a form containing numerous drop downs and check boxes. I need to add a file upload option to it. The jsp is set up like this… Here’s my input