By Shreyas

2011-10-21 13:45:03 8 Comments

I am working on some legacy code running Spring 2.5. I need to use something similar to Spring 3's @PathVariable...anything similar available in Spring 2.5?


@Sean Patrick Floyd 2011-10-21 13:53:27

The closest you'll probably get is through ant-style wildcards in mapping paths. You will then have to parse the path manually in your method to get the variable value, I guess.

Related Questions

Sponsored Content

29 Answered Questions

5 Answered Questions

[SOLVED] Passing an Array or List to @Pathvariable - Spring/Java

24 Answered Questions

[SOLVED] How do I POST JSON data with cURL?

12 Answered Questions

[SOLVED] Difference between Spring MVC and Spring Boot

7 Answered Questions

[SOLVED] @RequestParam vs @PathVariable

15 Answered Questions

[SOLVED] Spring MVC @PathVariable with dot (.) is getting truncated

6 Answered Questions

[SOLVED] Difference between applicationContext.xml and spring-servlet.xml in Spring Framework

  • 2010-09-06 14:05:29
  • user448070
  • 170396 View
  • 373 Score
  • 6 Answer
  • Tags:   java spring

15 Answered Questions

24 Answered Questions

[SOLVED] Is there an equivalent of 'which' on the Windows command line?

3 Answered Questions

[SOLVED] PathVariable in Spring Controller

Sponsored Content