2

I must return address myaccount.htm#box-two with modelMap. "#box-two" is very important for me, when I put:

return new ModelAndView("redirect:myaccount.htm#box-two", modelMap);

it doesn't work, I got my parameters in my URL:

http://localhost:8080/RestFinderWebApp/mojekonto.htm?nameError=Name+required#box-two

I tried also:

return new ModelAndView("myaccount#box-two", modelMap);

but it failed.

bluish
  • 26,356
  • 27
  • 122
  • 180
zax
  • 91
  • 2
  • 5
  • 7

1 Answers1

0

A RedirectView will be your friend, as pointed out in this post: Spring Jsps and Jumping to Anchors

Community
  • 1
  • 1
Philipp Jardas
  • 3,222
  • 3
  • 29
  • 42