<%@ taglib uri="http://jakarta.apache.org/taglibs/input-1.2" prefix="input" %>

When there are multiple input tags on the page with the same name they become an array of parameter values when submitted. See request.getParameterValues(String name). The input tag library now supports repopulating those form fields correctly.

Enter the names of up to 3 friends:




Previously only the first field would be repopulated, as all three fields have the same name. Now the fields are repopulated correctly. The only requirement is that you use an <input:form> tag rather than the plain <form> tag.

This is the sample example as above except without the <input:form> tag so it reverts to the original behaviour.

Enter the names of up to 3 friends: