0
votes
0answers
7 views

Spring Security for urls with params and event urls

In our project we have a lot of permissions. Some of them just for pages and we filter them like this: <intercept-url pattern="page1" access="hasAuthority('3')" /> But we have some pages like ...
0
votes
1answer
11 views

MessageBodyReaderSupport for DTO Classes?

I want to use the Grails-jaxrs plugin to implement a custom MessageBodyReaderSupport to read a UserDto class from a client. How do I have to implement the UserDtoReader in order to get an instance ...
0
votes
1answer
14 views

How to display Spring Form Validation message inside Jquery Dialog?

I have a Jquery Dialog which contains text fields wherein user can edit his personal details. An Ajax call is made to backend controller when user clicks Update button. Now I need to perform Server ...
0
votes
0answers
6 views

Propagating a security context across multiple WARs with Spring Security without an IdP

Setup: 2 separate wars deployed, each with basic SpringMVC + Spring Security configured. View is not relevant but let's say JSP. Scenario: User authenticates into app1. Goal: When user accesses ...
1
vote
3answers
43 views

Can't run 'Hello World" Spring MVC code

I took the following example from Spring's website, trying to understand the basic concepts but so far I've only been struggling with configuration. So here's web.xml: <?xml version="1.0" ...
-1
votes
0answers
10 views

j2ee - read write ms excel files (guidelines) [on hold]

I just want to experiment working with excel files in j2ee. So, a basic task that I would like to do is read excel file, view its content via a browser, modify and save data to the same file. For ...
1
vote
0answers
16 views

Getting an email address for a user logged in through Active Directory with Spring Securitu

I'm working on a Spring MVC based web application that uses Spring Security to allow users to log in with their Active Directory credentials. I'd like to get the user's email address once they've ...
0
votes
1answer
13 views

Spring Security OAuth 1.0a: providing already existing tokens

I'd like to secure a simple rest web service developed using Jersey using Spring OAuth v1.0a, and I have a questions about it. First, a brief doubt: I've found some examples involving Spring-MVC, is ...
0
votes
5answers
37 views

Create an Object instance from a Map

I have a map with keys and string values. This Map has been built reading a resource bundle where the data is organised in the following way: height=160 weight=80 name=bob And I have a class Person ...
0
votes
2answers
18 views

Why Spring gives priority to 405 Http Error over 406 Http Error

I have a rest Controller in Spring which allows GET and POST methods. The POST method is restricted to the producing outputs with the mapping @RequestMapping(value = "projects", method = ...
0
votes
1answer
32 views

Spring MVC in a multi maven module project

I am designing and implementing a Java web application using Spring, Spring MVC and Maven. My goal is to create three modules: a data module containing entities and DAOs a service module containing ...
0
votes
1answer
18 views

catching exception in spring controller is advisable?

i had a argument with my manager regarding having generic exception catch in spring controller object public class userController{ public void addUser(@Model user UserObj){ //call ...
0
votes
1answer
24 views

Error in navigating one page to another using Spring MVC framework?

I want to navigate from one page to another using spring MVC in my project. I have two JSP page and one controller. First page is welcome page which opens when i start the project using tomcat. My ...
0
votes
1answer
81 views

Filtering database rows with spring-data-jpa and spring-mvc

I have a spring-mvc project that is using spring-data-jpa for data access. I have a domain object called Travel which I want to allow the end-user to apply a number of filters to it. For that, I've ...
0
votes
1answer
22 views

How resolve org.springframework.web.servlet.view.InternalResourceViewResolver in spring mvc

In my application web spring mvc. Problem, I use 2 view(.jsp and jspx). But in servlet-context.xml, i just config for 1 view(.jsp). <beans:bean ...
0
votes
0answers
28 views

Deffered Result in Spring MVC returning incorrect response

Hi I am using spring mvc 3.2.4 and jquery 1.9.0 for long polling. My application is deployed on Tomcat 7.0.42. My spring Configration files are as below Application Web.xml <web-app ...
0
votes
0answers
29 views

what is the use Model in Spring and how to use it [on hold]

It might be a very useless question for experts in spring user but i just started learning it so some one please explain me the use of Model for sending values over Jsp pages instead of using simple ...
0
votes
0answers
31 views

Spring security user role and access jsp

I am new to spring security. I have two user roles like Admin and Common Users. I want to access some jsp only access by the admin users, but the problem is once a user is log out he/she still can ...
0
votes
1answer
19 views

Using Spring Mvc WebApplicationInitializer, ApplicationContextInitializer and ContextLoaderListener

I use java-based Spring Mvc configuration. I register the Spring dispatcher servlet in the WebApplicationInitializer implementation. Load Spring ApplicationContext configuration files. Logic of ...
0
votes
1answer
25 views

org.springframework.beans.factory.BeanCreationException Caused by : java.lang.NoSuchFieldError: NULL

Hi I'm working on spring project using Spring MVC Spring Security Hibernate and MySQL and i got this error org.springframework.beans.factory.BeanCreationException: Error creating bean with name ...
-1
votes
0answers
30 views

Spring validation vs JSF builtin validator

We have the following use case: A project spring + JSF some xhtml pages use spring form validators, and some use jsf validators. The particular page contains several fields that have restriction for ...
0
votes
2answers
63 views

switching databases in spring petclinic

I am trying to switch from hsql to MySQL in the spring petclinic sample application. Can someone show me what I am doing wrong? I followed the instructions in the petclinic_db_setup_mysql.txt file, ...
0
votes
1answer
25 views

Spring REST Controller for StringEntity

I am creating Web Service using Spring 4.0 REST Api , I am having following Android HttpClient code but I am getting 404 error from server , I need best Spring controller code which will work with my ...
0
votes
1answer
38 views

AJAX - ok on server side, returns error on client side

I have a problem with an AJAX: In server side I get a result but in client side (javascript) it returns an error. Server side: @RequestMapping(value = "/nrConturi", method = RequestMethod.GET, ...
0
votes
0answers
13 views

Error to convert json string to DTO on html form using Spring MVC

I'm having problems to receive data on Spring MVC when I submit a json string. I would like fill a list that implements an DTO that contains the attributes that are being passed on this json string. ...
0
votes
1answer
22 views

Error loading DispatcherServlet's default strategy class

I m getting the following exception while trying to deploy the war file on Weblogic 10.3.6 server. The application is using SPring mvc. Error loading DispatcherServlet's default strategy class ...
1
vote
1answer
23 views

MongoDB replication with Spring

I configured Spring with MongoDB on my local machine, without replication, and everything works fine. I also have a replica set that works fine. Now I tried to add the replica set, but the ...
1
vote
0answers
39 views

Spring Security Annotation Configuration not doing anything

I have a problem setting Spring Security up. So to start with, I have a Configuration class, something like this: @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity ...
0
votes
1answer
25 views

Creating multiple bean instances of a class with different property values in spring configuration

I am creating multiple bean instances of a class with different property values in spring configuration. For example: <bean id="myBeanA" class="MyClass"> <property name="identifier" ...
0
votes
0answers
15 views

using swagger in production [on hold]

I'm considering adding swagger documentation to a production spring mvc server. I couldn't find any info on whether or not swagger is considered production-ready. Anyone have any experience with ...
0
votes
1answer
44 views

How to configure Spring lookup-method with Spring property

I'm trying to inject a property everytime a bean (myBeab) is called using a lookup method and Spring dependency injection : <bean id="myBean" class="com.myclass" <property ...
0
votes
1answer
27 views

SpringMVC & Hibernate : CannotCreateTransactionException: Could not open Hibernate Session for transaction;

I'm trying to set up and spring mvc + hibernate project but it's driving me nuts. I would also take in account suggestions to order the xml config files. I have the following files: --> WEB.XML ...
0
votes
0answers
20 views

<form:options tag spring mvc binding

I am binding a list with Spring MVC form select box like this given below <c:forEach var="item" items="${instance.parameters}" varStatus="itemsRow"> <form:select size="6" ...
0
votes
1answer
29 views

Spring security: Accessing a method in controller must login first [on hold]

I'm creating a new feature in my webapp that requiring the users to login first before proceed to accessing a resource or submitting something. It's just like when you want to access your account info ...
0
votes
2answers
34 views

springMVC ,how to delete a link (href)

package net.roseindia.controller; import net.roseindia.service.ArticleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import ...
0
votes
0answers
11 views

Extra properties in domain object: best practice and naming convention

I have a domain object Company. I need to show info of this company together with a distance from this entity to some other location. I load this entity from the database and calculate that distance. ...
0
votes
3answers
29 views

How to avoid concurrent access of controller method with the same session in java spring?

I would like to know how to make sure that some method in a service is accessed only once at a time per session. I'll illustrate by a small example: Assume we have a user in a state A (user.state = ...
0
votes
1answer
22 views

Bring jsp form page after previous submit (java spring)

New to spring (and HTML/forms etc for that matter) and been stuck on this problem for long time. So I want to have a front page where you enter a username. Then click submit, and takes you to a ...
1
vote
0answers
31 views

Spring - Set properties before load resources in applicationContext

in my applicationContext.xml I have a list of spring cfg files. <import resource="classpath:resource1.xml"/> <import resource="classpath:META-INF/resource1.xml"/> <import ...
0
votes
0answers
14 views

How to get the username in the login failure URL with Spring Security

I want to get the username to show at the hearing further erroneous login and add one to the counter to block the account and notify by email to the owner thereof. The problem is I'm not able to get ...
0
votes
0answers
25 views

Hibernate query oscillating between two sets of results

We have a jsp page on a spring mvc 3 project with hibernate that has two datatables displaying two groups of users. Clicking on a user's name in one table sends a POST transferring the user to the ...
0
votes
0answers
9 views

How to use message.properties file in spring 3.0 and how to access with complete example

Here's the code: public void validate(Object obj, Errors error) { BG_ORDER lcmd=(BG_ORDER)obj; if(lcmd.getEmail()==null||lcmd.getEmail().length()==0) { ...
0
votes
1answer
37 views

Spring REST Implementation Error 404

I am trying to develop a test REST application, by using the tutorial from here. I am deploying it as a war, by including war in my pom, and have built the application with no errors. When it comes to ...
2
votes
2answers
49 views

Spring MVC preview implementation

I have following task: implement "preview" functionality using Spring MVC. And it will be good to know the best way to implement it: It is straight forward task to 1. Populate new form and save this ...
1
vote
1answer
25 views

MVC Java Config - HandlerInterceptor not excluding paths

I have a MVC Java configuration but the HandlerInterceptor is not excluding some patterns. At the line marked with xxx, if 1) I add both addPatterns("/**") and excludePathPatterns("*.ecxld") to the ...
2
votes
0answers
56 views

Modular Spring-based application

I'd like to allow users to add/refresh/update/remove modules in the main project without the need of restart or redeploy. Users will be able to code their own modules and add them in the main project. ...
0
votes
0answers
10 views

On Post Method PDF is not getting Download in Spring 3.0 Controller

@RequestMapping(method = RequestMethod.POST, value = "/download/applicationpicker/{formName}",consumes = "application/json", produces="application/pdf") public void ...
0
votes
1answer
18 views

Display image on web using spring and apache common from folder

In my application i have a uploaded functionality.For that i have used apache-commons file upload and spring multipart and i have stored the image in directory folder(not within project context). The ...
-1
votes
1answer
26 views

spring 2d array in RequestMapping

I have request http://localhost:8080/user?card[id]=1&card[info][name]=Test+Tester&card[info][time]=123123 or another case ...
1
vote
1answer
57 views

Spring MVC: application context is running twice

I'm using Spring MVC 3.2 and I can clearly see in the logs that application context is running twice when I run application. Initialization, database connection, mappings everything is doubled. I'm ...

15 30 50 per page