use many input tag to search from database , JSP
<p><a href="https://i.stack.imgur.com/yoK8g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yoK8g.png" alt="enter image description here"></a></p>

<p>I have many case to search database, so i don't want repeat if/else statement, 
is there an other good solution ? 
nom and dd and ddd are input name,</p>

<p>Sorry for my bad english!</p>