2014-9-17二班----8 web project


http://localhost:8080/rwkj1/indexServlet  


地址请求后,,,,浏览器 地址栏没有变化


package cn.rwkj.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; public class IndexServlet extends HttpServlet{ public void doGet(HttpServletRequest re,HttpServletResponse res) throws ServletException, IOException{ System.out.println("odget");
re.getRequestDispatcher("index.jsp").forward(re, res);

} public void doPost(HttpServletRequest re,HttpServletResponse res){
System.out.println("odget");
} }

2014-9-17二班----8 web project

2014-9-17二班----8 web project

2014-9-17二班----8 web project

2014-9-17二班----8 web project

2014-9-17二班----8 web project

上一篇:CRM/ERP 企业管理软件中常见的七种程序设计模式


下一篇:如何在eclipse jee中创建Maven project并且转换为Dynamic web project