Questions tagged as 'spring'

1
answer

Is it possible to do conditional injects with SpringSecurity?

What tip would you give when for example a user can not access an X object? For example:    URL: / student / {id} The user who is DIRECTOR of a school has access to the profile of all the students of the school that he is director The...
asked by 07.06.2016 / 23:19
0
answers

Spring MVC Neither BindingResult nor plain target object for bean name 'contract'

I have a "list.jsp" page that renders the list of a certain entity. I was asked to create a search form on this page: <form:form role="form" commandName="contrato" servletRelativeAction="/contrato/search" method="POST"> <div...
asked by 23.03.2016 / 17:11
0
answers

Redirect to another sub-domain with addition of flash attributes (RedirectAttributes) does not work

My question is related to adding attributes in the RedirectAttributes interface. I'm adding two flash attributes in the redirect, but the redirect does not only change the URI but the subdomain as seen in the method below: @RequestMap...
asked by 23.03.2016 / 15:13
0
answers

Error passing request attribute to an angular directive

I have to pass an array of objects to an angular directive, but I have the error below. How do I solve it? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{ http://errors.angularjs.org/1.4.3/$parse/ueoe?p0=%5B%7B at an...
asked by 23.03.2016 / 18:20
0
answers

jquery .load and .ajax return different values, why?

Hello, My problem is that using .load or .ajax on the same address, I get different data values. Here's an example: <span id="charset"></span><br/> <span id="d_nome" title=".load"></span> <span id="d_nom...
asked by 06.03.2016 / 17:16
1
answer

Custom Session generated by spring

I have the following scenario: a nodejs application that saves the session in redis. another spring application that also saves the session in redis. I would like to share this same session between the two applications. I thought of the...
asked by 30.01.2016 / 16:38
0
answers

SpringSecutiry and JNDI Authentication problem

I'm having an authentication problem when I add the datasource to my project, so when I try to sign in, authentication happens but not the transition to the post-login page. I use the custom UserDetailsService, get the connection to the bank, bu...
asked by 20.02.2016 / 19:20
0
answers

Servlet configured with annotations is not loaded

I have the following class: public class SpringServlet extends AbstractAnnotationConfigDispatcherServletInitializer{ @Override protected Class<?>[] getRootConfigClasses() { return new Class[]{}; } @Override...
asked by 22.11.2015 / 15:49
0
answers

Problem with Spring properties MVC 4

Good error happens in the second message of the properties file the first message ok when I try to put the second message in the file this error happens    Caused by: javax.servlet.jsp.JspTagException: No message found under   code 'campo.add...
asked by 05.01.2016 / 18:19
1
answer

How to get Email after logging in to Facebook using Spring for Android Sample?

I'm using the Spring for Android Sample framework. The facebookProfile.getEmail () method does not display any information, the other methods, facebookProfile.getId () and getName () work perfectly. What's missing for you to get email informatio...
asked by 19.11.2015 / 15:21