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 to get a parameter selected by a user on a page.
With Spring 2.5.6, the code looked like that :
But running this code with the new framework doesnt work quite well.Code:@Controller public class LoginController extends CustomController { private TechnoService technoService = null; // Other functions @RequestMapping("/page1.wss") public ModelAndView login(HttpSession session, HttpServletRequest request) { String technoID = request.getParameter("foobar"); // doing some weird things with the parameter ;) String nextUrl = "/showWelcome.wss"; return new ModelAndView("redirect:" + nextUrl); } }
I've tried with the @RequestParam("foobar") in the function signature, but I get a runtime error saying that the parameter doesn't exist.
Any thoughts about what's going on and how I could solve it?
Thanks


Reply With Quote
