【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“_0002fhelloworld_0002ejsphelloworld_jsp_0.java”一文,供大家参考学习!
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;
public class _0002fhelloworld_0002ejsphelloworld_jsp_0 extends HttpJspBase {
// begin [file="D:\\helloworld.jsp";from=(1,0);to=(1,40)]
public String getServletInfo() {
return "a hello world example";
}
// end
static {
}
public _0002fhelloworld_0002ejsphelloworld_jsp_0( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws JasperException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=8859_1");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="D:\\helloworld.jsp";from=(0,27);to=(1,0)]
out.write("\r\n");
// end
//
HTML // begin [file="D:\\helloworld.jsp";from=(1,40);to=(8,0)]
out.write("\r\n<html>\r\n<head>\r\n<title>Hello, World</title>\r\n</head>\r\n<body>\r\n<h1>\r\n");
// end
// begin [file="D:\\helloworld.jsp";from=(8,2);to=(8,33)]
out.println(" Hello, World! ");
// end
// HTML // begin [file="D:\\helloworld.jsp";from=(8,35);to=(12,0)]
out.write("\r\n</h1>\r\n</body>\r\n</html>\r\n");
// end
} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
_jspxFactory.releasePageContext(pageContext);
}
}
}