<form action=<%=request.getContextPath()%>/login.do>
这样不行吗?