Below is the code used for simple html and it works:
<select id="name" class="state">
    <option value="Brad" selected="selected">
        Brad
    </option>
    <option value="Carol">
        Carol
    </option>
    <option value="Derrick">
        Derrick
    </option>
</select> 
Is there another method that i can use so that I can set a default value to my select option tag?
In my jsp file:
</html:select>
<html:option value="0">--Select--</html:option>
                    <html:option value="Brad" selected="selected">Brad</html:option>
                    <html:option value="Carol">Carol</html:option>
                </html:select>
The <option value="Brad" selected="selected"> Brad </option> works in simple html. Brad is shown before clicking the dropdown arrow. My problem is that when I used this in my jsp it says that "The attribute is not recognized <html:option value="Brad" selected="selected">Brad</html:option>"
 
     
     
    