2

I'm developing Spring MVC application. I have several locale languages and when I change them on JSP pages which require their own request params, I get an exception like:

Required int parameter 'remedyId' is not present

The link I used to change locale is:

<a href="?language=en">

When I click the link, it overrides request parameters in current URL with it's own.

http://localhost:8080/medapp/remedyInfo?language=ru

Instead of:

http://localhost:8080/medapp/remedyInfo?remedyId=1&language=ru

I suppose there is syntax to add multiple request parameters to current URL, but I don't know it. Thanks.

Java Enthusiast
  • 654
  • 7
  • 19
Zarial
  • 283
  • 3
  • 11

0 Answers0