Request 3 « Web « Spring Q&A





2. Save intercepted request for later use    forum.springsource.org

Save intercepted request for later use Hi! I want to log the useage of a web service, so I have a UsageLogger class which takes some data from the request and ...

3. How does one test request params?    forum.springsource.org

How does one test request params? How does one test @RequestParam inside of a unit test? A problem I have is that I make a controller test and everything passes just ...

4. Duplicate Request handling    forum.springsource.org

Duplicate Request handling Hi, I am working on synchronizer token pattern in Spring MVC wherein I have a listener putting token in session when new one is created. I also insert ...

5. bind from request to command object.What about the reverse direction?    forum.springsource.org

bind from request to command object.What about the reverse direction? To bind from request to the command object I override bind method: Code: public class UsersController extends MultiActionController { private final ...

6. About Intercepting Requests with Handler Interceptors In Spring3.0.0RC1    forum.springsource.org

Dear Members I recall read in Spring Recipes book which work with Spring 2.5.x series about Intercepting Requests with Handler Interceptors and did mention to Scott Murphy's spring-plugins that forward to ...

7. Correlation of methods involved in an HTTP request    forum.springsource.org

Correlation of methods involved in an HTTP request Hi, In the context of monitoring the performance of an enterprise Java application, would it be possible for Spring application managements tools (such ...

8. Multiple end points having multiple requests    forum.springsource.org

Multiple end points having multiple requests Hi, I am trying to develop a webservice, which is having multipe endpoints with multiple methods. I am having similar wsdl which is posted in ...

9. Resolve method using request parameter    forum.springsource.org





10. Errors thrown during handling web request    forum.springsource.org

Errors thrown during handling web request I'm looking for an overview of errors that can be thrown during handling web request. Like MissingServletRequestParameterException and TypeMismatchException. I like to add them to ...

11. non-HTTP request scope    forum.springsource.org

non-HTTP request scope Hello My application server listens to a port for some special non-HTTP requests and dispatches them to threads from a thread-pool. I need (to develop?) a custom scope ...

12. Request method 'GET' not supported    forum.springsource.org

Request method 'GET' not supported Anybody seen this? Trying to convert my 2.5 form controller to 3.0. When I request the page I get a HTTP error HTTP Status 405 - ...

13. Is it safe to use MockHttpServletRequest in production code to simulate HTTP request?    forum.springsource.org

Is it safe to use MockHttpServletRequest in production code to simulate HTTP request? I have used MockHttpServletRequest to simulate a web request in my unit tests. Here is the usage: -------- ...

14. Multiple request handlers[How to?]    forum.springsource.org

Multiple request handlers[How to?] Hello guys! I'd like to know if it's possible to do something like this: I've configured my DispatcherServlet mapping as "/*", so it will handle any url. ...

15. Request method 'PUT' not supported    forum.springsource.org

Jan 28th, 2010, 09:15 AM #1 jander View Profile View Forum Posts Private Message Junior Member Join Date May 2007 Posts 7 Request method 'PUT' not supported i try to make ...

16. HTTP PUT Method has empty request parameters    forum.springsource.org

I'm trying to write a REST type of app, and having trouble with the PUT method. I get no data in the request, basically. I can see that data is being ...





17. Sending a request parameter from the JSP    forum.springsource.org

Sending a request parameter from the JSP Hi All, Trying Web and Spring after a very long time. What i want is to send a request parameter from my jsp.I knew ...

18. Request Value getting retained :(    forum.springsource.org

Hi, I use a simple web application that uses struts2 (view)- tiles (view) - Spring - Hibernate. It is working fine. I have a strange behaviour explained below. 1. Consider I ...

19. HTTP Request Parameters in SimpleUrlAuthenticationFailureHandler    forum.springsource.org

HTTP Request Parameters in SimpleUrlAuthenticationFailureHandler Hello, I have extended my UsernamePasswordAuthenticationFilter, and also created custom success and failure handlers. How can I get the HTTP POST parameters from within the handlers? ...

20. Request parameter case sensitivity    forum.springsource.org

Hi, Is it possible to get round the issue of case sensitivity when auto-binding request params to object models? i.e. Spring MVC will only bind request params to object properties with ...

22. How can I intercept all requests?    forum.springsource.org

Is it possible to configure Spring MVC to filter all requests through HandlerInterceptors even if they don't go through the DispatcherServlet? In the same way that ServletFilters can filter all requests ...

23. zipped request    forum.springsource.org

Hi, is it possible to zip the webservice request ? I found only the acceptGzipEncoding option, to indicate the server that the response can be zipped. Thanx, Andr

24. Command object doesn't persist between requests?    forum.springsource.org

Command object doesn't persist between requests? I'm using Spring 3 and annotation-based configuration for my controllers. I have a controller that looks like this: Code: @Controller @RequestMapping( "/useradmin" ) public class ...

25. Request params    forum.springsource.org

Request params Hi, I'm quite new to Spring and I'd like to learn about request params. I know that they are values attached to http request, but why to use them ...

26. Hostname verification on https request when using HttpRequestExecutor    forum.springsource.org

Hostname verification on https request when using HttpRequestExecutor I am using the Spring Integration (v 1.0.4) HttpRequestExecutor to invoke a service by posting data over an https connection to another server ...

27. How Are HTTP Requests Forwarded to Separate Web Server in Spring 3.0?    forum.springsource.org

How Are HTTP Requests Forwarded to Separate Web Server in Spring 3.0? Greetings - I have an Apache HTTPD 2.2 / Tomcat 6.0.28 setup with Spring 3.0. I want to forward ...

28. put request problem    forum.springsource.org

I wrote below method in my controller Code: @RequestMapping(value="/put", method=RequestMethod.PUT) @ResponseBody public Result testPutParam(@RequestParam("name") String name) { Map m = new HashMap(); m.put("name", name); m.put("msisdn", "010-7464-5279"); return new SuccessResult

29. Process saved HttpServlet Request    forum.springsource.org

Hi all, In our web application for some critical operations we need to save current HttpServletRequest and do some extra validations. After validation operations, we need to get saved HttpServletRequest and ...

30. Change request for PriorityChannel.java    forum.springsource.org

Change request for PriorityChannel.java I'm currently using spring integration 1.0.4 and found something a bit annoying. In PriorityChannel.java, the method getRemainingCapacity() (from QueueChannel.java) is not overridden, the implementation inherited from QueueChannel ...

31. SessionThemeResolver doesn't resolve on the first request    forum.springsource.org

SessionThemeResolver doesn't resolve on the first request I have a ThemeChangeInterceptor on my handlerMapping that changes the session THEME_SESSION_ATTRIBUTE_NAME if a request param is present. On the very first request of ...

32. How to get request parameter    forum.springsource.org

How to get request parameters with POST method Hi all, I'm currently doing some migration for a Spring 2.5.6 application to Spring 3.0.4 and I was wondering how I am supposed ...

33. Spring 3 Issue Binding Fields to Request Parameters    forum.springsource.org

Spring 3 Issue Binding Fields to Request Parameters I am working on upgrading the version of Spring that my application is using from version 2 to 3. I have a controller ...

34. Request method 'HEAD' not supported    forum.springsource.org

Request method 'HEAD' not supported G'day everyone, I'm working on a Spring 3.0 project, and we want to update our Selenium-based test suite. Unlike the version we're currently using, Selenium 1.0.3 ...

35. Spring The request sent by the client was syntactically incorrect    forum.springsource.org

Is there something wrong with this URL??? Code: http://localhost:8080/rcmi/provisioner/requests/scoa/newscoa?delCh=606&location=3411&future1=&future2=&department=&product=&interconnect=&carrierBillingAccount=&amount=12312&percentage=12313&active=Active&scoaid=1 Here is my method in controller Code: @RequestMapping(value="order/scoa/newscoa", method=RequestMethod.GET) public @ResponseBody JSONResp updateScoa(@ModelAttribute("form") OrderForm form, ModelMap map, @RequestParam String comapny, @RequestParam String ...

36. How to enable the HTTP Options Request    forum.springsource.org

I added the @RequestMapping(method = RequestMethod.OPTIONS) But it is not working. The POST Request Method is working fine using the same controller. Using Tomcat 7, Spring 3

37. Feature Request: Recognize packages imported by @Grab    forum.springsource.org

At the moment, STS places a red underline under the import statement in the following Groovy script: Code: @Grab(group = "net.sf.delicious-java", module = "delicious", version = "1.14") import del.icio.us.Delicious // rest ...

38. Can't display result to the same request page    forum.springsource.org

Can't display result to the same request page I got the following error: org.apache.jasper.JasperException: Neither BindingResult nor plain target object for bean name 'displayWheels' available as request attribute This is part ...

39. Can't get servlet request parameter    forum.springsource.org

Can't get servlet request parameter Hello, I have a problem with servlet request parameter. The incoming request may be of different content type: "application/x-www-form-urlencoded" and multipart reqest type. When the content ...

40. How to implement atomic requests    forum.springsource.org

How to implement atomic requests Hello, I'm not sure this is the exact group for the following question: The application is supposed to send a message to a JMS Queue and ...