1. Problems with @PathVariable? forum.springsource.orgCan someone please explain what I am doing wrong. This call works well Code: this.getAll = function(){ var formfield; $.ajax({ async : false, url : 'formfields', type : 'GET', dataType : ... |
2. @PathVariable Problem forum.springsource.org@PathVariable Problem Hi All, I am making POC on spring 3.0.4. Regarding that I am getting simple prblem. Below is the application description. 1)contactList.jsp <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> |
3. @PathVariable Problem forum.springsource.org@PathVariable Problem Hi All, I am making POC on spring 3.0.4. Regarding that I am getting simple prblem. Below is the application description. 1)contactList.jsp <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> |
4. Can't get @PathVariable to work. forum.springsource.orgCan't get @PathVariable to work. Hello. Here is my controller: Code: @Controller @RequestMapping("/sandbox") public class Sandbox { @RequestMapping(value="/{day}", method = RequestMethod.GET) public String sayHello(@PathVariable @DateTimeFormat(iso=ISO.DATE) Date day) { System.out.println("Hello: " + ... |
5. How to handle an invalid @PathVariable forum.springsource.orgHow to handle an invalid @PathVariable I have a controller: @RequestMapping(value="/pet/{id}", method=RequestMethod.GET) public String show(@PathVariable("id") Long id, ModelMap modelMap) { //Use id to get details return "pet/details"; } I would like ... |
6. Why did Spring 3.0 use "@PathVariable" instead of the obvious "@PathParam"? forum.springsource.orgSo, Spring MVC has the "@RequestParam" annotation. JAX-RS uses the "@PathParam" annotation. In the REST implementation in Spring 3.0, instead of using the obvious "@PathParam" (which would be in a different ... |
7. PathVariable Annotations and Periods forum.springsource.orgPathVariable Annotations and Periods Hello all: Does anyone know if there is a limitation with the @PathVariable annotation regarding the use of periods? I have the following service definition: @Version(number = ... |
8. Error handling with @PathVariable forum.springsource.orgError handling with @PathVariable I like the RESTful MVC stuff as it is every convient to bind a method parameter to something in the URL path. One thing I don't understand ... |
9. UrlRewrite, @PathVariable multiple dots in filename forum.springsource.org@RequestMapping(value = "{filename}", method = RequestMethod.GET) public void provideFile(@PathVariable String filename,OutputStream outputStream) throws IOException { ... // here I do sth. with the filename ... } |
10. Spring 3.0 @PathVariable being truncated forum.springsource.orgSpring 3.0 @PathVariable being truncated Hi there, I have a RESTful URL like: http://localhost:8080/webapp/entity/123.456 And my controller does something with this. Code: @Controller @RequestMapping("/") public class RestController { private static final ... |
11. @PathVariable with dots is cut forum.springsource.orgHi, Is there any limitation of using URI that ends with dots? For example: www.mysite.com/id/10.10.3 For some reason it seems like that the following controller cuts the last number: @RequestMapping(value ="/{uid}" ... |
12. Problem with @PathVariable when using MockHttpServletRequest forum.springsource.orgProblem with @PathVariable when using MockHttpServletRequest Hi, I am trying to test my controller by using MockHttpServletRequest. This is the controller method I want to test (tested with 'curl http://localhost:8080/admin/admin/groups/0?format=xml', I ... |
13. Question about @PathVariable forum.springsource.orgErr... my normal URL's get processed by the controller. However, the path variables do not. Any Ideas? WHat is needed for path variables to be processed? I do a simple form ... |
14. Cannot get @PathVariable working, what am I missing? forum.springsource.orgHi, A bit maddening but I have suffering with getting what should be textbook usage of Spring 3 Rest for hours. I would really appreciation a bit of advice. My controller ... |
15. @PathVariable problem forum.springsource.org@PathVariable problem Hi All, I'm using Spring 3.0.4. I haven't tried in 3.0.5 yet, but I'm having a problem with @PathVariable in a URI template. So I have a URL template ... |
16. @PathVariable Does not work for me forum.springsource.org@PathVariable Does not work for me Following is my controller, Code: @Controller @RequestMapping("/search.htm") public class SearchController { private static Logger logger = Logger.getLogger(SearchController.class); @RequestMapping(value={"/trade2"}) public String arg( Model model) { System.out.println("Looking ... |
17. @PathVariable character encoding forum.springsource.orgHi, in the environment I'm using (Tomcat 6), percent sequences in path segments apparently are decoded using ISO-8859-1 when being mapped to a @PathVariable. I'd like that to be UTF-8. Where's ... |