我自己试了试 你可以在com.erma.struts.action.LoginAction 执行后这么写
response.sendRedirect("http://localhsot:8080/B/showNews.do"); B是B项目名称的意思
return null;
这样就可以了
response.sendRedirect("http://localhsot:8080/B/showNews.do"); B是B项目名称的意思
return null;
这样就可以了
response.sendRedirect("http://localhsot:8080/B/showNews.do"); B是B项目名称的意思
return null;
这样就可以了
response.sendRedirect( "http://localhsot:8080/B/showNews.do "); B是B项目名称的意思
return null;
这样就可以了
request.getRequestDispatcher("http://localhsot:8080/B/showNews.do?xx=xx").forward(request,response);
return null;
然后在com.erma.struts.action.BAction中return (new ActionForward("/b.jsp"));这样就可以进入b.jsp了;
然后在com.erma.struts.action.showNewsAction中return (new ActionForward( "/showNews.jsp "));这样就可以进入showNews.jsp了;详细点。
<forward name= "err " path= "/page/err.jsp " > </forward >
<forward name= "display " path= "../WEB-INF/showNews.do " > </forward >
</action > WEB-INF是B项目的目录
没使过不知道性不?