Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown tag (form:option) error

why am I getting unknown tag for

 <form:option >
 <form:form method="post" > 

in spring mvc. How can I solve this? Thanks

like image 560
Hasini Silva Avatar asked Jul 24 '26 04:07

Hasini Silva


1 Answers

you have to import the form tag. add this to your jsp file:

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

also, the form:option should be inside a select:

<form:select path="mySelect">
    <form:option value="0" label="A" />
    <form:option value="1" label="B" />
</form:select>
like image 86
dieter Avatar answered Jul 26 '26 18:07

dieter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!