<form action="<%=request.getContextPath() %>./powerservlet" method="get" style="margin-left: 410px">
<div class="row">
<div class="col-md-10 form-group" >
<input type="hidden" name="status" value="service">
<input type="text" class="form-control " name="password" style="margin-top: 4px">
</div>
<div class="col-md-2 form-group" style="position: center">
<input type="submit" value="确认" class="btn btn-primary">
</div>
</div>
</form>
<input type="hidden" name="status" value="service">
解决方法:设置一个隐藏的input并设值
跳转后的连接:
**http://localhost:8081/powerservlet?status=service&password=111**
!!!!!!!!!!!!!!ヾ(◍°∇°◍)ノ゙!!!!!!!!!!!!!!!