hasini silva hasini silva - 1 year ago 126
Java Question

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?

dit dit
Answer Source

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" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download