0
votes
0answers
10 views

Revoke tokens from Spring REST grails

I am using Spring spring-security-rest:1.4.0.RC5 grails plugin. In my config file, the code is grails.plugin.springsecurity.rest.token.storage.useGorm = true ...
0
votes
0answers
11 views

Spring MVC 4 upload file Not mapping for requested URI

I am making an application in Spring MVC, since I am still learning how to use the framework I am having problems to upload a file. Controller @Controller @RequestMapping("/controller") public ...
1
vote
0answers
35 views

Spring @ExceptionHandler not called when controller implements an interface

I have a @Controller that implements an interface but the @ExceptionHandler methods that are on a abstract BaseController are not executed. I've debugged and it seems the ...
1
vote
3answers
54 views

Spring3 - Autowired is not happening. The object is null

servlet.xml I am using annotation instead of creating bean in XML. And i have added the "context: annotation-config" in my XML <beans xmlns="http://www.springframework.org/schema/beans" ...
0
votes
2answers
22 views

Spring mvc configuration error in xml

I am creating an application using spring 3.2 mvc framework. I am using Spring Tool Suite and maven. When i updated jar 3.1 to 3.2 i am getting the following errors in servelet-context.xml and ...
1
vote
1answer
20 views

where to find The methods of HttpHeaders class in spring framework

I came across some code which is difficult to understand since I am unaware of the methods it use to achieve. The class is HttpHeaders of spring framework. It had some methods like, ...
0
votes
1answer
17 views

Manipulating and storing Java hashmap(map of map) in java script at JSP to use later in combo menu

I have a hashmap as variable in baking bean like. private Map<String, Map<String, String>> states; At JSP page, I have two combo menu 1st is for country and second is for states. I ...
-1
votes
0answers
27 views

HTTP Status 500 - Servlet.init() for servlet appServlet

I've follow some tutorials but it didnt work so heres my problem. I cant launch some of my Spring Apps because of this problem. Heres the code and the error log. package com.xdcorp.bo; import ...
0
votes
2answers
23 views

Path Variable not mapping Spring MVC

So i have the following problem. I have a controller which i mapped to "/reservationQuery/*". Whenerver i go on the url for "delete_1" method, it works, but whnever i try and go on the "delete_2" ...
0
votes
2answers
25 views

Spring MVC 4: Mockmvc empty MockResponse content

I'm getting started using Spring. Following this tutorial when I reach WebDomainIntegrationTest the test fails because of an empty content response. I'm thinking maybe that the problem could be the ...
0
votes
1answer
25 views

URLEncode a value of Map in Spring

I have a spring bean that takes predefined hashmap values from application context. <util:map map-class="java.util.HashMap" id="keyValues"> <entry key="key1" value= "value1"/> ...
0
votes
0answers
18 views

Why is SavedRequest null in Java Spring app?

This is related to a previous question : How to intercept request in servlet filter first before it hits the login jsp in Spring MVC? I did some research and found there is a SavedRequest object that ...
0
votes
0answers
26 views

How to intercept request in servlet filter first before it hits the login jsp in Spring MVC?

I'm taking over an existing Spring MVC project, and need to modify it's behavior, I added a servlet filter to intercept all incoming requests, some URLs of this app has the following format : ...
0
votes
0answers
54 views

Send email on status change

I have a project which currently only does methods when I run the site. Now I need to implement a thread which checks the DB/the website for status-changes so I can send out a mail if something ...
0
votes
1answer
15 views

UriComponentsBuilder/UriComponents encode doesn't behave correct

i have following code (package org.springframework.web.util) UriComponentsBuilder.fromUriString("/test/").queryParam("rt","http://a.com?u=1").build(false).encode().toUriString() actual result: ...
2
votes
3answers
65 views

Basic Spring 4 MVC - Hello World - Error 404 File Not Found

I am trying to access localhost:8080/HelloWeb/helloWorld, but keep getting a file not found error. I know that I'm not doing the mapping correctly, but as a beginner, I can't really pinpoint where. ...
-2
votes
0answers
36 views

Do I need to learn Spring AOP to use Spring MVC to make a web app [on hold]

I am new to Spring. I am doing a web application (written in java). In the past, I simply used servlets and wrote my own SQL for a web app, and I found it later to be difficult to manage due to the ...
2
votes
2answers
60 views

pageContext.request.contextPath not work

I tried read Question on stackoverflow and google but i can not find reason for my problem my .jsp file have content <%@ page language="java" contentType="text/html; charset=ISO-8859-1" ...
0
votes
2answers
33 views

How to pass a List<> in REST POST method using spring mvc

I'm trying to pass a List of similar values in the request body of a REST post method using spring mvc. Below is my sample code. Please let me know what is correct way to send the List in requestbody. ...
0
votes
1answer
18 views

Spring ApplicationContext beans loaded twice

My Spring ApplicationContext file is being loaded twice. This is using a standard maven webapp structure, with one web.xml. There is only one context file, and only one servlet defined. There is NO ...
0
votes
0answers
19 views

Spring data Neo4j: Error creating bean with name RepositoryInterfaceAwareBeanPostProcessor#0: nested exception is java.lang.NoSuchFieldError: NULL

when i am trying to deploy my application, using Spring data Neo4j, i get following exception. Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: ...
-1
votes
2answers
30 views

No default constructor found; nested exception is java.lang.NoSuchMethodException with Spring MVC?

I am working with Spring MVC controller project. Below is my Controller and I have a constructor declared which I am specifically using for testing purpose. @Controller public class TestController { ...
0
votes
2answers
25 views

Java / Spring / Angular.js passing file path to controller

I am trying to return a file from the server based on the path that I pass in through the dirFile parameter. But, I can't get the dirFile parameter to the controller. Here is my controller on the ...
0
votes
2answers
28 views

Handling multiple forms, Spring

I'd like to ask you what's the best way (if possible at all) to handle multiple forms on the same page with different methods? Let me explain: I've got a page with three forms. With request mapping ...
1
vote
1answer
20 views

Functioning of ModelAndView class in spring mvc 3

This may sound really stupid but I am unable to understand the flow of Spring MVC in my project. When I write the below mentioned code, what happens? ModelAndView mav = new ModelAndView("paging"); ...
0
votes
2answers
49 views

Spring MVC request mapping not found 404 page not found

I am developing sample Spring MVC application i want to return JSON string by requesting to spring mvc controller but when i make request via url it shows me 404 error i am following tutorial from ...
0
votes
1answer
21 views

How to disable curly braces replacement in messages in spring mvc validation

I have such field annotated by @Pattern final public class Branch{ @Pattern( regexp = "([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{8}", message = "Inn should be validated by pattern \"{regexp}\". Check ...
0
votes
0answers
8 views

Spring Security Active Directory Ignoring PartialResultException

I have the following configuration in my spring security xml file. When I try to authenticate I get the following message but cannot proceed. INFO: Ignoring PartialResultException I am aware that ...
0
votes
3answers
29 views

Dependency issue after adding spring-data-rest to gs-rest-service sample project

I'm experimenting RESTful Web Services with Spring, my starting project is Spring's gs-rest-service. The project works fine, when I hit http://localhost:8080/greeting I get {"id":1,"content":"Hello, ...
0
votes
0answers
22 views

HTTP Status 405 - Request method 'POST' not supported . Technology Used . Spring MVC and Spring security

I am using Spring MVC (4.0.0.RELEASE) and Spring Security (3.2.4.RELEASE). When i am trying to submit a page i am getting "HTTP Status 405 - Request method 'POST' not supported ." Error. web.xml ...
1
vote
1answer
21 views

AspectJ with Spring Security

I've got this annotation and an aspect class @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface AroundHere { } @Aspect @Component public class SomeAspect { ...
0
votes
1answer
36 views

Spring 4 - load property file inside the jar>war

I could not load the db.properties located inside the jar (project.service.jar), which is referred by the war file (project-web.war). The output war has the jar inside WEB-INF/lib/project.service.jar. ...
0
votes
1answer
30 views

Spring MVC 3.2 +Jackson

My requirement is simple i.e i want to write a common methods which suppose to have auto intelligence based on user request it will generate response, like if i submit as a html it should produce ...
3
votes
1answer
39 views

How to create multi layout in Spring MVC

I know about Apache Tiles in Spring, it seem working same jsp:include, but it doesn't solve my problem: I want a file with name is layout1.jsp, in this file, I will define a layout like: <html> ...
0
votes
1answer
26 views

Spring MVC: Forward instead of redirect

Is it possible to invoke an spring controller/action without redirecting? I do not want the browser to refresh to the new url.
0
votes
0answers
28 views

Trying to copy a file inside the deployed WAR file

I am trying to copy a file inside a WAR file, but it gives an exception. The code is: multipartfile.transferto("destination"+multipartfile.getOriginalName()); Here destination is ...
0
votes
2answers
23 views

Controller not firing on .jsp page hit MVC Spring JAVA

Trying to get a Spring MVC controller to fire when a .jsp page in my web project is hit directly. Web XML for the dispatcher servlet: <servlet> ...
0
votes
2answers
52 views

JOHN CULVINER FILE DOWNLOAD with dynamic form not working

I have a dynamic form on submit I call the plugin like below var method = "post"; // Set method to post by default if not specified. var path = "downloadExcel.obj"; var formDownload = ...
-1
votes
0answers
18 views

Spring MVC “The requested resource is not available.”

So, i am developing my first Spring MVC Project and for some reason i get this error. Can someone help me? 1) This is the Controller Class package webLayer; import java.util.Date; import ...
1
vote
2answers
60 views

Spring MVC : How to populate my Object with JSON

I have an update method (AJAX service) that expect an object. This object is populate by JSon and I want to test it but I can't.. I use spring mvc to set up my service. My Service : ...
0
votes
0answers
19 views

Maven project: Http 404 error

Got the following files for a Maven+Spring+Hibernate+MySQL project (under NetBeans): project / + Web Pages / + WEB-INF / + views / + login.jsp + ...
-2
votes
0answers
16 views

Using Google Serach Engine to get Specific users [on hold]

I am using Spring-MVC for development perpose I am given with a requirement of using "Google" search in my spring-mvc project for searching only Linkedin people. I have no idea how to do this? I ...
0
votes
1answer
52 views

java vs. php in html form using post

I need send a form from php to java using the method post and curl. I'm having problems to fetch a list of objects in php when I submit the form. I would like to know if is possible to do it like in ...
0
votes
3answers
61 views

Difference between spring @Controller and @RestController annotation

Difference between spring @Controller and @RestController annotation. Can @Controller annotation be used for both Web MVC and REST applications? If yes, how can we differentiate if it is Web MVC or ...
1
vote
0answers
36 views

Spring: request method is modified before getting to DispatcherServlet

My web application based on Spring MVC has a problem. When I'm submitting form with method POST, the controller sometimes executes method GET. It happens completely randomly. Sometimes it works fine ...
0
votes
0answers
21 views

Selecting multiple choices from one table to another table in jsp using strutsMVC

I'm try to develop a jsp page using SpringMVC. For that I want to do multiple selection from one table to another table with-in jsp-form. For that I developed a the jsp code like, ...
-1
votes
1answer
33 views

can we use single properties file for multiple companies [on hold]

We are using single properties file for multiple companies and it is working correctly but now we have to change some properties according to companies Likes ...
0
votes
1answer
12 views

get the count of trigger in quartz scheduler?

I am using quartz scheduler along with spring in my application and i want to get the number of the execution when the trigger is fired (i.e) first time, second time, third time and so on. i want to ...
0
votes
0answers
23 views

test sample java code with ip detection [on hold]

I am running my local web application on localhost and I have written a logic such away that if my request is from NZ(depends up on IP location) need to execute one piece code and if it is other than ...
0
votes
1answer
20 views

Spring MVC @RequestParam DefaultValue Not set for parameter with emptyvalue

I am calling the URL and sending parameter as below - http://india.webinc.in:8080/caseManagement/caseView?lock=false&caseId;= It is landed into Spring MVC's below controller method - ...