Questions tagged [spring-web]

The Spring Web model-view-controller (MVC) framework.

The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale, time zone and theme resolution as well as support for uploading files. The default handler is based on the @Controller and @RequestMapping annotations, offering a wide range of flexible handling methods. With the introduction of Spring 3.0, the @Controller mechanism also allows you to create RESTful Web sites and applications, through the @PathVariable annotation and other features.

Official Documentation

389 questions
0
votes
1 answer

How to use request scope in Spring?

I would like wrap UriInfo into my custom Query object and make it available in other Spring components. I was able to do so with HK2 like this package test.service; @Path("/test") public class TestResource { @Inject private Query query; …
lord.didger
  • 1,205
  • 1
  • 14
  • 30
0
votes
1 answer

SQLite file not updating after table creation

Ok, this is the situation. I reused a piece of code from a different project where I checked if a table existed in a certain sqlite db file. If not, it would create the table. The code worked then and I didn't add major changes to the file, so I am…
Rik Schaaf
  • 983
  • 1
  • 8
  • 30
0
votes
1 answer

How to add ServletContextListener to existing @Service?

I have an existing class that I want to add the ServletContextListener interface: @Service public class MyService { //... } @Component public class MyController { @Autowired private MyService service; } This runs fine. But as soon as I…
membersound
  • 66,525
  • 139
  • 452
  • 886
0
votes
2 answers

Spring returns only the first param from the query string

Spring returns only the first param from the query string, subsequent params are missing. When calling the following URL with curl: curl -i -X GET -b usercookie.txt -c usercookie.txt…
bpgergo
  • 14,789
  • 2
  • 37
  • 60
0
votes
1 answer

Arquillian, Spring WebApplicationInitializer, embedded Tomcat

I'd like to write a unit (component) test for a REST resource of my web application. This test should target the exposed REST interface and test its behaviour by issuing requests and checking the responses. The web application is configured without…
C-Otto
  • 4,941
  • 3
  • 25
  • 60
0
votes
2 answers

Advanced Restclient socket implementation can not connect to Spring Websocket

I have developed a chat application by using Spring Stomp and socketjs . I have successfully connected to the websocket over my clients but I can not connect to websocket by using Advanced Restclient -> socket implementation. Why? Thanks
melihcoskun
  • 276
  • 1
  • 4
  • 17
0
votes
1 answer

Model Attribute in JSP not working after added JSTL View

I'm using Spring 4 Web MVC in this project. Please help me to see my configuration and the error I get below. Correct me if the way I configure is wrong. Thank you. root-context.xml
hannacch
  • 21
  • 5
0
votes
1 answer

Spring sql-error-codes.xml does not show correct exception on timeout

The following error occurs when an exception occurs for myJDBCTemplate.queryForList() , before which a setQueryTimeout(1) is set. I have a database which has 1.2 million rows, and looking for the timeout exception to be printed or occur in the case…
NNikN
  • 3,322
  • 5
  • 38
  • 74
0
votes
1 answer

json to map using iterator, reads only the first key value

So, this is the json String that I've. String json…
Drunken Daddy
  • 5,655
  • 10
  • 57
  • 84
0
votes
1 answer

Spring Boot exclude Tomcat server and hibernate validator?

Question seems repeated but I facing some issue, when I am following below configuration from this spring boot war without tomcat embedded to Exclude embedded tomcat server I am using Spring-Web in JOB to call Rest Service using Rest…
Viraj
  • 1,260
  • 3
  • 15
  • 36
0
votes
0 answers

WebDataBinder customEditor for capitalization of the form submission ( one-way)

I have specific requirement that for certain form in my application, should be saved in capital letter in the database due to compatibility with legacy system. Looking thru the various solution, I found two feature in Spring Web-MVC which can help…
Gaurav Daga
  • 303
  • 2
  • 9
0
votes
1 answer

Why RestTemplate drops links from HAL+JSON response?

I am using RestTemplate for testing APIs exposed through Spring DATA REST and I cannot get links when parsing the response. The rest template is configured with Jackson2HalModule backed HttpConverter, and Entity requested has links to associations…
Anadi Misra
  • 1,382
  • 3
  • 26
  • 50
0
votes
0 answers

Spring and ApplicationConfig get error when confing not default place

I try to run a my simple web-application build with Spring but i get an error when I start Tomcat7. This is my web.xml
Zaknafein
  • 318
  • 1
  • 3
  • 15
0
votes
1 answer

Console errors when refreshing login page after upgrading to JSF 2.2 and RF 4.5.7

I have recently upgraded a web application from JSF 1.2 to JSF 2.2 as well as RF 3.3.3 to RF 4.5.7. I'm currently experiencing console errors when loading the first login.html page. This only happens when either the page is first loaded or when I…
user1746582
  • 541
  • 1
  • 7
  • 19
0
votes
1 answer

How to use same context for multiple WARs?

I followed example in this link to use SingletonBeanFactoryLocator for using same bean in both WARs, but it seems two beans created NOT single. I am getting below by hitting http://localhost:8080/War1/ and http://localhost:8080/War2/ Hello from…
Manoj
  • 4,979
  • 16
  • 48
  • 81
1 2 3
25
26