If, for example, current page URL is ‘http://domain.com/page?param1=value1¶m2=value2’, then:
<spring:url value="">
<spring:param name="param3" value="value3" />
</spring:url>
produces ‘http://domain.com/page?param1=value1¶m2=value2&param3=value3‘, but
<spring:url value="">
<spring:param name="param2" value="value3" />
</spring:url>
produces ‘http://domain.com/page?param1=value1&param2=value3‘.
Is it possible to achieve?
Thе only solution that comes to my mind is to provide a collection of params and iterate through them ignoring params which must be substituted/ommited: