I have this code in my jsp
<a target="_self" href="File:\\\S:\folder\<%=folder.getValue("id")%> ">test</a>

To open a webpage with the folder on my computer.

The folder on the network all have 4 digit:
From 0001 to 0999

In the BD, the id value are from 1 to 999

How can I get a 4 digit value from my database and pout the result in my link?