Questions tagged as 'spring-mvc'

1
answer

How to mount a link in the JSP with the value of an input?

Is it possible to create a link (href) or an action (form) by taking the value of an input to pass to a @PathVariable of a method in the controller? My code is the following in the controller: @RequestMapping(value="atendimentos/{numeroCham...
asked by 04.02.2016 / 15:05
2
answers

Doubt regarding JPA management with Spring on JEE server

I'm starting in Spring MVC and in the book I'm reading the configuration and management of connections is all done by Spring, that is, Spring opens and manages the connections with the bank and makes this available as if I had a JEE server (% wi...
asked by 13.12.2015 / 23:54
2
answers

Pass user name for history trigger

I'm trying to implement a generic trigger for record history. I'm following this Audit Trigger link that works perfectly. The only problem is that I can not pass on the user who is making the changes. I use the Spring MVC and when I crea...
asked by 13.08.2014 / 17:22
1
answer

Java Spring Boot - Read a file from the Resources folder inside a .jar

I am writing a class that will read an ETL Pentaho Kettle (transformation). I put the file that the class will read in the Resources / KTR folder. But when I try to run the code as a java (java -jar) application, I get an error saying that th...
asked by 28.08.2018 / 14:12
1
answer

Method not found using JPA

I've created a method for autocomplete. But when I am going to invoke this method the same is not found, it follows error: Advertência: /pessoal/cadastrar.xhtml @35,186 completeMethod="#{pessoalController.lookupFornecedores}": Method not...
asked by 12.05.2014 / 20:37
1
answer

How to manipulate multiple inputs with same name in Java?

How do I manipulate in the backend using multiple input 's with the same name ? For example: <input type='text' name='telefone' ><br> <input type='text' name='telefone' ><br> <inpu...
asked by 22.06.2016 / 01:52
1
answer

Problem with Spring MVC + javascript

I'm having an issue with Spring MVC and jQuery. I have a jsp with a 'form' and I needed to do a test where when I click on a button, jquery clears the texts of some "input type = 'Text'". I even managed to test, but every time I click the...
asked by 30.03.2015 / 16:15
1
answer

SpringBoot and Angularjs Routes

I'm trying to put a friendly url to get the '#' from the angle of the url, I followed the following tutorial: # / spring-boot-as-a-backend-for-angularjs / and it worked fine on the static url. But if I do this .state('site3.evento', {//a...
asked by 07.08.2015 / 18:25
2
answers

Convert Spring XML declaration to Java code

Can anyone help me convert the Spring XML code that is just below a Java code? <bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine"> <property name="templateResolver" ref="templateResolver" /> <pr...
asked by 15.07.2015 / 16:01
1
answer

Relate entity with more than one entity

Hello, I have the following Client, Vendor and Financial entities in my system. All of them have a list of Contacts, as would a two-way relationship in these ways. public class Client { @OneToMany private List<Contact> contacts }...
asked by 24.07.2015 / 19:36