Methods Summary |
---|
public void | addBean(Node.UseBean n, java.lang.String s, java.lang.String type, java.lang.String scope)
if (scope == null || scope.equals("page")) {
pageBeans.addElement(s);
} else if (scope.equals("request")) {
requestBeans.addElement(s);
} else if (scope.equals("session")) {
sessionBeans.addElement(s);
} else if (scope.equals("application")) {
appBeans.addElement(s);
} else {
errDispatcher.jspError(n, "jsp.error.invalid.scope", scope);
}
putBeanType(s, type);
|
private boolean | checkApplicationBean(java.lang.String s)
return appBeans.contains (s);
|
private boolean | checkPageBean(java.lang.String s)
return pageBeans.contains (s);
|
private boolean | checkRequestBean(java.lang.String s)
return requestBeans.contains (s);
|
private boolean | checkSessionBean(java.lang.String s)
return sessionBeans.contains (s);
|
public boolean | checkVariable(java.lang.String bean)
// XXX Not sure if this is the correct way.
// After pageContext is finalised this will change.
return (checkPageBean(bean) || checkSessionBean(bean) ||
checkRequestBean(bean) || checkApplicationBean(bean));
|
public java.lang.Class | getBeanType(java.lang.String bean)
Class clazz = null;
try {
clazz = loader.loadClass ((String)beanTypes.get(bean));
} catch (ClassNotFoundException ex) {
throw new JasperException (ex);
}
return clazz;
|
private void | putBeanType(java.lang.String bean, java.lang.String type)
beanTypes.put (bean, type);
|