Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add param in redirect View

Monicka Akilan Rk
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Am working in spring. I use redirect view to redirect to a particular url , In that controller post method i used param to differentiate different different action called search,update,Delete.
Now i dont know how to pass param in redirect view

******************************* My redirect code is*********************
RedirectView view = new RedirectView("", true);
return new ModelAndView(view.getUrl());

*********************************Controller method have to call*****************
@RequestMapping(value = "/aaaa", method = RequestMethod.POST,params = {"search"})

I used " " this is a tiles view name.
Whether i have to give view name or direct url.
I need to call that method..


I got 404 error it cant reach that controller

Please help me to sort out of this problem.

Thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic