jsp - Spring form:select issue -


i wrote simple code in jsp using form:select

<form:select id="a" path="validpath"> <form:option value="x"/> <form:option value="y"/> </form:select> 

here showing whole box , showing these 2 items. not looking drop down box. showing options in single huge box. make more clear showing option without selecting

something x y ...

i not sure how can fix issue?

i think should work. can refer link more information :
spring mvc dropdown box example
make sure have added library
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>


Comments

Popular posts from this blog

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -