beginJsp2.0外文书籍源代码

源代码在线查看: include.java

软件大小: 228 K
上传用户: GUAIGUAICHENGTI
关键词: beginJsp 2.0 书籍 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.wrox.servlets;
				
				import java.io.*;
				import javax.servlet.*;
				import javax.servlet.http.*;
				
				public class Include extends HttpServlet 
				{
				
				  String forwardingAddress = "Goto";
				
				  public void doGet(HttpServletRequest req, HttpServletResponse res) 
				              throws ServletException, IOException 
				  {
				    req.setAttribute("option", "include");
				    RequestDispatcher dispatcher = req.getRequestDispatcher(
				                                           forwardingAddress);
				    dispatcher.include(req, res);
				    PrintWriter out = res.getWriter();
				    out.println("Response included successfully");
				  }
				}
				
							

相关资源