1 28 29 package com.caucho.jsp.el; 30 31 import com.caucho.el.ELParser; 32 import com.caucho.el.Expr; 33 34 import javax.el.ELContext; 35 36 39 public class JspELParser extends ELParser { 40 43 public JspELParser(ELContext env, String string) 44 { 45 super(env, string); 46 } 47 48 protected ELParser create(String string) 49 { 50 ELParser parser = new JspELParser(_elContext, string); 51 52 copyTo(parser); 53 54 return parser; 55 } 56 57 60 protected Expr createImplicitObjectExpr(String name) 61 { 62 if (name.equals("pageContext") || 63 name.equals("applicationScope") || 64 name.equals("sessionScope") || 65 name.equals("requestScope") || 66 name.equals("pageScope") || 67 name.equals("param") || 68 name.equals("paramValues") || 69 name.equals("header") || 70 name.equals("headerValues") || 71 name.equals("cookie") || 72 name.equals("initParam")) 73 return new ImplicitObjectExpr(name); 74 else 75 return null; 76 } 77 } 78 | Popular Tags |