<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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -