用于餐饮类的源代码!只能在java下使用!!!

源代码在线查看: test_jsp.java

软件大小: 3965 K
上传用户: liangshuo800
关键词: java 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.apache.jsp;
				
				import javax.servlet.*;
				import javax.servlet.http.*;
				import javax.servlet.jsp.*;
				import java.util.*;
				
				public final class test_jsp extends org.apache.jasper.runtime.HttpJspBase
				    implements org.apache.jasper.runtime.JspSourceDependent {
				
				  private static java.util.Vector _jspx_dependants;
				
				  public java.util.List getDependants() {
				    return _jspx_dependants;
				  }
				
				  public void _jspService(HttpServletRequest request, HttpServletResponse response)
				        throws java.io.IOException, ServletException {
				
				    JspFactory _jspxFactory = null;
				    PageContext pageContext = null;
				    HttpSession session = null;
				    ServletContext application = null;
				    ServletConfig config = null;
				    JspWriter out = null;
				    Object page = this;
				    JspWriter _jspx_out = null;
				
				
				    try {
				      _jspxFactory = JspFactory.getDefaultFactory();
				      response.setContentType("text/html;charset=GB18030");
				      pageContext = _jspxFactory.getPageContext(this, request, response,
				      			null, true, 8192, true);
				      application = pageContext.getServletContext();
				      config = pageContext.getServletConfig();
				      session = pageContext.getSession();
				      out = pageContext.getOut();
				      _jspx_out = out;
				
				      out.write("\r\n");
				
				String path = request.getContextPath();
				String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
				
				      out.write("\r\n\r\n");
				      out.write("\r\n");
				      out.write("\r\n  ");
				      out.write("\r\n    ");
				      out.write("				      out.print(basePath);
				      out.write("\">\r\n    \r\n    ");
				      out.write("My JSP 'test.jsp' starting page");
				      out.write("\r\n    \r\n\t");
				      out.write("\r\n\t");
				      out.write("\r\n\t");
				      out.write("    \r\n\t");
				      out.write("\r\n\t");
				      out.write("\r\n\t");
				      out.write("				      out.write("\r\n\t-->\r\n\r\n  ");
				      out.write("\r\n  \r\n  ");
				      out.write("\r\n    This is my JSP page. ");
				      out.write("\r\n    测试!\r\n    \r\n  ");
				      out.write("\r\n");
				      out.write("\r\n");
				    } catch (Throwable t) {
				      if (!(t instanceof SkipPageException)){
				        out = _jspx_out;
				        if (out != null && out.getBufferSize() != 0)
				          out.clearBuffer();
				        if (pageContext != null) pageContext.handlePageException(t);
				      }
				    } finally {
				      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
				    }
				  }
				}
							

相关资源