href action总是转到首页?
<a href="<%=request.getContextPath()%>/login.do?method=addUser&uid=<bean:write name="listitem" property="id" />" target="_blank"> <bean:write name="listitem" property="username" /> </a>
loginAction中存在addUser这个方法,本来是应该转到edituser.jsp页面,可是总是转到index.jsp,
如果换到action中的forward来执行login.do?method=addUser的话可以转到edituser.jsp,但是放到页面上通过 <a href="/login.do?method=addUser"来调用的话就不行,总是转到index.jsp,这是什么原因啊?谢谢!