0
votes
0answers
3 views

Atmosphere framework with Spring URL character encoding UTF-8

I've managed to integrate Atmosphere framework version 2.0.7 with chat example into existing Spring project (spring version 3.2.2.RELEASE). So far everything works fine except part of application ...
0
votes
0answers
11 views

Custom Annotation Spring MVC ResultBinding

I have a simple MVC controller that i annotate with my Custome Annotation: @PreAuthorize("hasRole('GESTION_BENEFICIAIRE')") @AuthentificationForte(otp = "#{args[0]}",transactionId="#{args[1]}") ...
0
votes
0answers
8 views

Spring How to redirect to the login page each time restart application on server

Is there any mechanism can achieve this so that after restart application, if user try to log on http://localhost:8080/NoHackInAfterRestart/order/0001 it will redirect to ...
0
votes
0answers
13 views

No WebApplicationContext found: initializer not registered?

i have an error when start server , java.lang.IllegalStateException: No WebApplicationContext found: initializer not registered? i already declare listener in web.xml <listener> ...
0
votes
1answer
17 views

Custom tags in Spring

I've got custom tag. It works properly, but not at all. My jsp looks like: <test:myTag>${headHunter.salary}</test:myTag> Where ${headHunter.salary} is some value. And tag: public int ...
0
votes
2answers
36 views

Spring: Convert String from View to a Calendar Object

How can I convert a string from a form input (easyui-datetimebox, in case) to a Calendar property in an object in Controller, autobinded by Spring? I've read ...
0
votes
2answers
50 views

Spring Controller override @ModelAttribute request param mapping

Let's say I have a Spring Controller like this: @Controller public class FooController { @RequestMapping(value = "/foo", method = RequestMethod.GET) public String update ...
0
votes
2answers
50 views

Spring MVC-Request method 'POST' not supported: org.springframework.web.servlet.PageNotFound handleHttpRequestMethodNotSupported

I am getting the following warning: Request method 'POST' not supported. Controller method: @Controller public class UserServiceController { @RequestMapping(value = "/login", method = ...
0
votes
1answer
27 views

Spring MVC: globally injecting properties from persistent layer

I have a service bean capable of getting / setting property values from persistent layer (eg: database). Something like this: @Service public ConfigService { public String getConfig(String key); } ...
0
votes
2answers
41 views

Spring Rest servcie prodouces JSON but not for objects mapped with a db

It took me hours to realize, what the problem is: I have a Spring Rest service and a GET-Method which returns a user in JSON-Format. The data comes from my database over sessionFactory. After ...
-2
votes
0answers
27 views

Interview , what are design patterns you used to develop Web application other than MVC [on hold]

Interview Question: Last week end I attended an interview, Interview panel members asked the following question. "what are design patterns you used to develop Web application other than ...
1
vote
4answers
28 views

Where do I place the applicationContext.xml file within Spring project directory

I am trying to learn about the Spring framework for Java and I am not sure where about's I am supposed to put the applicationContext.xml file for configuring the spring beans. My directory structure ...
0
votes
1answer
25 views

Mapping a subclass property to form path in Spring MVC

Product @Entity @Table(name = "product") @DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING) public class Product { @Id @Column(name = "id") ...
0
votes
2answers
31 views

Font size for all the pages

I am quite new to Spring and Web Applications. I create object containing font size in my controller and then I add it to the model. private String fontSize = "24"; @RequestMapping(value = "/", ...
1
vote
2answers
29 views

Spring Boot - how do I get the base url of a request

I'm running a spring boot and a few of my domain services need to know the domain name. I know that I could capture it at the application layer in the controller method like this: ...
0
votes
0answers
33 views

Having @ExceptionHandler annotations in spring controller hangs Tomcat

I have a very strange issue with Tomcat and Spring application. I have a controller which is annotated with @ControllerAdvice annotation: @ControllerAdvice public class ExceptionController { ...
0
votes
1answer
29 views

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener in eclipse

I am doing a simple Spring MVC application(not using maven) which will print hello world on browser. It is a dynamic project in eclipse, so I put all the required jar files IN both build path as well ...
0
votes
3answers
35 views

HTTP Status 406. Spring MVC 4.0, jQuery, JSON

I want to send JSON from my controller. I have the following configuration. spring-servlet.xml : <?xml version="1.0" encoding="UTF-8"?> <beans ...
0
votes
2answers
14 views

No declaration can be found for element 'webflow:flow-builder-services'

I'm trying to integrate SWF in Spring mvc application for the first time, but I'm getting this error : org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException in XML document from ...
1
vote
1answer
21 views

Apache Lucene - Creating and Storing an Index?

This post if a follow-on from my previous question: Apache Lucene - Optimizing Searching I want to create an index from title stored in my database, store the index on the server from which I am ...
0
votes
3answers
38 views

Spring MVC: Unable to access HTML page via InternalResourceViewResolver

I have two files index.html and user.jsp, there location is WebContent/WEB-INF/. In addition, i am able to access user.jsp with the following code: <bean ...
0
votes
2answers
18 views

How to get all the item of a jstl select in MVC Spring controller from view

I am using Spring MVC and JSTL tag for jsp pages as frontend ... I have a jstl select option in view ... the select is populated from db ....now I want that if I press a submit butten ... I can get ...
0
votes
1answer
13 views

Spring, Interceptor's excludePathPatterns function is not working properly

I am working on Spring Framework and I wanted to write an interceptor and I wrote it eventually and it is working fine. but at a point, I dont want my interceptor to intercept the request that is ...
0
votes
2answers
30 views

@ModelAttribute from jquery ajax form is null

I have a form that I am using to submit via ajax to a spring action that is not populating the @ModelAttribute properly. I have tried the inputs as siteName site.siteName, and other various things. ...
2
votes
2answers
51 views

Should each module in a Maven project have its own Spring application context?

I am creating an application where I have separated the project in different modules such as (domain, repository, service and web) as well as many general purpose maven projects for mail sending, text ...
1
vote
1answer
15 views

Spring MVC and show Validation in process

I am using the following UserValidator Code in SpringMVC. The code works fine. But, I am not sure how will I implement the validating with the database. Since, it is with database connectivity, it ...
1
vote
1answer
25 views

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [] in DispatcherServlet with name 'spring'

Please, help to find my mistakes. I've got error "WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [] in DispatcherServlet with name 'spring'" web.xml ...
0
votes
1answer
18 views

Custom locale redirect after login - Spring Security

I am writing a simple prototype Spring MVC 3.2 with Spring Security. My requirements specify that the urls must be of the following structure http://app-name/{locale}/signin ...
0
votes
2answers
23 views

Java Passing array via jquery

i have action below @RequestMapping(value = "info_pure", method = RequestMethod.GET) public ModelAndView GetInfo(String ser_name, String[] p_input_week_days, int p_input_month_day) { ...
0
votes
2answers
23 views

Spring and tag mvc resources, can't reach .css

I've the following error when I start my Spring project in my web browser in the "console": GET http://localhost:8080/lbagno/$%7Bresource%7D [HTTP/1.1 404 Not Found 6ms] And when I see the ...
0
votes
0answers
24 views

SpringToolSuite- Project workspace creation Error

I am new to springs, while i am trying to create new spring project or spring Starter project it throws the following error: ArtifactTransferException: Failure to transfer ...
0
votes
2answers
33 views

Get RequestBody and ResponseBody at HandlerInterceptor

Logic I have to implement is logging all requests with body served to DB. So I decided to use: afterCompletion method of HandlerInterceptor. There are two parameters passed to this method ...
0
votes
1answer
16 views

java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

I'm trying to configure org.apache.commons.dbcp.BasicDataSource as bean in web.xml under a tomcat project using tomcat 6 and postgresql 9.1 my servletdispacher.xml ` ...
0
votes
2answers
29 views

Can't resolve javax.servlet.http

I used to create web application in eclipse and I never got this issue. import javax.servlet.http.HttpServletRequest; The import javax.servlet.http cannot be resolved I was working on a project ...
0
votes
0answers
32 views

PropertyPlaceholderConfigurer in Spring MVC

I use Spring MVC in my project, I define the details in web.xml like this : <context-param> <param-name>contextConfigLocation</param-name> <param-value> ...
0
votes
0answers
8 views

Disable multi tab in a single browser using spring

Am using spring mvc. I am facing a problem in session sharing between multiple tabs. So i want to restrict the user to work only in single tab. If the user opens new tab i have to give error message ...
0
votes
2answers
32 views

how to get path in spring to access configuration file

I have written a spring program where there are following classes,interface and xml files are there in different packages ...I used eclipse kepler. My problem is that when I am executing ...
0
votes
1answer
38 views

How to add header and footer on each page using ITextRenderer

I am stuck to the following condition where i need to generate pdf. What i am doing is String A="<html><head></head><body>Some start html content" String B="here the ...
0
votes
2answers
26 views

JdbcTemplate.update() insert return values

JdbcTemplate.update() returns number of rows affected - so you not only know that delete/update was sucessfull, you also know how many rows were deleted/updated. What will be the return value if I ...
1
vote
1answer
34 views

Display the locale in a JSTL

In a jstl page i want to display the current locale being used to render the page. The page locale is working just fine. When i switch the locale (?lang=nl) the nl resource bundle is used. When is ...
0
votes
2answers
33 views

How to return 400 HTTP error code when some property of a RequestBody parameter is null?

I have the following example: This is the request body: public class UserLoginData implements Serializable { private static final long serialVersionUID = 1L; private String username; ...
0
votes
3answers
62 views

ClassNotFoundException with Spring sample projects

I'm trying to run the most up to date spring sample projects in eclipse but i'm always getting ClassNotFoundException. (For example with spring-mvc-showcase project) Environment: Ubuntu 12.04, ...
1
vote
1answer
40 views

except session any other option to keep data in spring MVC application

I am developing Online Examination software, where thousands of students can give online exam from their college/school at a same time. So considering concurrent hits and server performance i am ...
-1
votes
2answers
60 views

Unable to parse JSON having inner objects into Java object using jackson

I am using Spring to develop project and want to parse JSON data coming in string format to the controller. To show case the issue, i have written below small program. Did goggling enough but no ...
0
votes
1answer
37 views

spring mvc one init binder for all controllers

I have 5 controllers and i would like to register an InitBinder to all of them. I know i can add this code to each of them. @InitBinder public void initBinder(WebDataBinder binder) { ...
0
votes
1answer
35 views
+50

ESAPI implementation for spring form tags

How can we implement ESAPI output encoding in an application using java and spring-mvc. Read many posts and saw this: <%@ page import="org.owasp.esapi.*" %> <input type="hidden" ...
1
vote
0answers
26 views

Applet is not shown on a jsp on a spring web project

I developing a spring mvc web project with spring security. I also developed a Java Applet, which works fine in the browser in an html file (the Applet is also signed with the jarsigner). Now I want ...
1
vote
1answer
24 views

Spring - how to set the period interval of ScheduledTimerTask?

My xml configuration will be , <bean id="producer" class="com.pointel.T_Server.service.Producer" /> <bean id="timerTaskFactoryBean" ...
0
votes
0answers
16 views

IntelliJ IDEA “Web.xml error” inspection “Cannot resolve symbol” for error-page > location element in web.xml

I'm using IntelliJ IDEA 13 to develop a spring mvc web application. When I define the default error-page location in web.xml like this <?xml version="1.0" encoding="UTF-8"?> <web-app ...
1
vote
1answer
258 views

Spring MVC - Edit the response URL with path variables

I'm going to use the StackOverflow's user profile's page as an example. Let's say we have this URL: http://stackoverflow.com/users/2036414/userlogin If we change (edit in the browser's url bar) the ...

15 30 50 per page