we're looking for a standard way to encode a URL given a predefined base URL and a Map of parameters and values.
Ideally the method is declarated as something like

```
String constructURL( String baseURL, Map<String,String> parameters)

```

would work like the following snippet

```
Map<String, String> params = new HashMap<String,String>();
params.put("p1", "v1");
params.put("p2", "v2");
String url = constructURL( "page.html", params);

```

and url would have the following value

```
"page.html?p1=v1&p2=v2"

```

Btw, we're using Apache Click with Tomcat.