java jsp 调试,开发一个调试JSP的Eclipse插件(1)

Hello_jsp.java:

1 package org.apache.jsp;

2

3 import javax.servlet.*;

4 import javax.servlet.http.*;

5 import javax.servlet.jsp.*;

6

7 public final class Hello_jsp extends org.apache.jasper.runtime.HttpJspBase

8 implements org.apache.jasper.runtime.JspSourceDependent {

9

10 private static java.util.Vector _jspx_dependants;

11

12 static {

13 _jspx_dependants = new java.util.Vector(1);

14 _jspx_dependants.add("/greeting.jsp");

15 }

16

17 public java.util.List getDependants() {

18 return _jspx_dependants;

19 }

20

21 public void _jspService(HttpServletRequest request, HttpServletResponse response)

22 throws java.io.IOException, ServletException {

23

24 JspFactory _jspxFactory = null;

25 PageContext pageContext = null;

26 HttpSession session = null;

27 ServletContext application = null;

28 ServletConfig config = null;

29 JspWriter out = null;

30 Object page = this;

31 JspWriter _jspx_out = null;

32

33

34 try {

35 _jspxFactory = JspFactory.getDefaultFactory();

36 response.setContentType("text/html");

37 pageContext = _jspxFactory.getPageContext(this, request, response,

38 null, true, 8192, true);

39 application = pageContext.getServletContext();

40 config = pageContext.getServletConfig();

41 session = pageContext.getSession();

42 out = pageContext.getOut();

43 _jspx_out = out;

44

45 out.write(" \r\n");

46 out.write("

\r\n");

47 out.write("

Hello Example");

48 out.write("

\r\n");

49 out.write(" \r\n");

50 out.write("

\r\n");

51 out.write("Hello There!");

52 out.write("

\r\nGoodbye on ");

53 out.write(String.valueOf( new java.util.Date() ));

54 out.write(" \r\n");

55 out.write(" \r\n");

56 out.write(" \r\n");

57 out.write(" \r\n");

58 } catch (Throwable t) {

59 if (!(t instanceof javax.servlet.jsp.SkipPageException)){

60 out = _jspx_out;

61 if (out != null && out.getBufferSize() != 0)

62 out.clearBuffer();

63 if (pageContext != null) pageContext.handlePageException(t);

64 }

65 } finally {

66 if (_jspxFactory != null) _jspxFactory.releasePageContext ( pageContext);

67 }

68 }

69 }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值