myeclipse中如何去除struts结构或者访问WEB-INF下的JSP
3个回答
展开全部
package steed.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import steed.domain.GlobalParam;
public class JspForwardServlet extends BaseServlet{
private static final long serialVersionUID = -7914240262517622426L;
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
req.getRequestDispatcher("/WEB-INF/index.jsp").forward(req, resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
doGet(req, resp);
}
}
追问
可以给我你邮箱吗?想要你帮我改改
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询