Announcement Announcement Module
No announcement yet.
excluding pathvariable from model Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • excluding pathvariable from model

    Hi, I tried to switch Spring version in my project from 3.0.2 to 3.1.0, but some functionality didn't work.
    I tracked down the problem to the feature added recently to spring.

    I have a method, something like this:
    @RequestMapping(value = "/foo/{id}", method = RequestMethod.GET)
    public String fooService(@PathVariable("id") Long serviceId, ModelMap modelMap, HttpServletRequest request){
    and i have a tagx, with the attribute:
    <jsp:directive.attribute name="id" required="false" type="java.lang.String" rtexprvalue="true"/>
    the problem is, that if id attribute is not specified, when using this tag, the ${id} automatically gets the value from model.

    It's a quite big project, and it is problematic to track down all the conflicting variables.
    Is there a way to disable this functionality? So that pathvariables doesn't get included in the model?