这是在jsp页面中发送参数和url的正确方法吗?
<a href="CancelRequest?userid=<%=idperson%>&userrnamee=<%=namee%>" onclick="return confirm('Are you sure you want to cancel the request?');">
<input type="submit" value="CANCEL REQUEST"></input>
</a>
我尝试了这个但是它没有占据名字领域。请帮助
答案 0 :(得分:0)
示例代码:
<input type="button" value="ADDUSER" class="button"
onclick="location.href='UserController?action=insert'"/></p>
<input type="button" value="BACK" class="button"
onclick="location.href='employeeCategory.jsp'" />