按钮未重定向到spring控制器
我有一个锚标签,里面有一个按钮,我想在单击按钮时将其重定向到spring控制器。下面的代码在chrome浏览器上工作,但在IE中不工作。你能帮我吗按钮未重定向到spring控制器,spring,jstl,Spring,Jstl,我有一个锚标签,里面有一个按钮,我想在单击按钮时将其重定向到spring控制器。下面的代码在chrome浏览器上工作,但在IE中不工作。你能帮我吗 <spring:url value="/auth/userhome" var="homepage" /> <a href="${homepage}"> <button type="button" class="btn btn-primary cancel">
<spring:url value="/auth/userhome" var="homepage" />
<a href="${homepage}">
<button type="button" class="btn btn-primary cancel">
<spring:message code="button.cancel" />
</button> </a>
您可以检查此线程: 这将解决您的问题:
<input type="button" onclick="javascript: location.href = 'http://www.stackoverflow.com';"/>