<input type="button" /> does not call Spring controller in Internet Explorer 8 -
i call spring controller method on button click in jsp. works fine in firefox. not in internet explorer 8.
following jsp code
<a href="maintenance.html" > <input type="button" value="search" name="action"/> </a>
following spring controller code
@requestmapping(value={"/","/maintenance"}) public string navigatetomaintenance() { return "maintenance"; }
there nothing wrong controller. microsoft standard doesn't allow button inside anchor. remove a
tag , change code this
<input type="button" value="search" name="action" onclick="location.href='maintenance.html'"/>
or
you can remove button , style anchor button
Comments
Post a Comment