本文整理汇总了Java中javax.servlet.jsp.tagext.VariableInfo.AT_END属性的典型用法代码示例。如果您正苦于以下问题:Java VariableInfo.AT_END属性的具体用法?Java VariableInfo.AT_END怎么用?Java VariableInfo.AT_END使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.servlet.jsp.tagext.VariableInfo
的用法示例。
在下文中一共展示了VariableInfo.AT_END属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getScriptingVars
public List<Object> getScriptingVars(int scope) {
List<Object> vec = null;
switch (scope) {
case VariableInfo.AT_BEGIN:
vec = this.atBeginScriptingVars;
break;
case VariableInfo.AT_END:
vec = this.atEndScriptingVars;
break;
case VariableInfo.NESTED:
vec = this.nestedScriptingVars;
break;
}
return vec;
}
示例2: getScriptingVars
public Vector getScriptingVars(int scope) {
Vector vec = null;
switch (scope) {
case VariableInfo.AT_BEGIN:
vec = this.atBeginScriptingVars;
break;
case VariableInfo.AT_END:
vec = this.atEndScriptingVars;
break;
case VariableInfo.NESTED:
vec = this.nestedScriptingVars;
break;
}
return vec;
}
示例3: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
// get the type
String type = (String)data.getAttribute("type");
// make it an object if none supplied
if (type == null) {
type = "java.lang.Object";
}
// return the infor about the deined object
VariableInfo[] vinfo = new VariableInfo[1];
vinfo[0] = new VariableInfo(data.getAttributeString("id"),
type, true, VariableInfo.AT_END );
/* return the results */
return vinfo;
}
示例4: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String type = (String)data.getAttribute("type");
Object name = data.getAttribute("name");
Object value = data.getAttribute("value");
if (type == null) {
if ( (value!=null) || (name==null) )
type = "java.lang.String";
else
type = "java.lang.Object";
}
return new VariableInfo[] {
new VariableInfo(data.getAttributeString("id"),
type,
true,
VariableInfo.AT_END )
};
}
示例5: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String classname = data.getAttributeString("classname");
if( classname == null )
classname = "java.lang.Object";
String id = data.getAttributeString("id");
if( id == null )
id = data.getAttributeString("name");
return new VariableInfo[] {
new VariableInfo(id,
classname,
true,
VariableInfo.AT_END)
};
}
示例6: getScriptingVars
public List<Object> getScriptingVars(int scope) {
List<Object> vec = null;
switch (scope) {
case VariableInfo.AT_BEGIN:
vec = this.atBeginScriptingVars;
break;
case VariableInfo.AT_END:
vec = this.atEndScriptingVars;
break;
case VariableInfo.NESTED:
vec = this.nestedScriptingVars;
break;
}
return vec;
}
示例7: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
/* the id parameter */
String id = data.getAttributeString("id");
VariableInfo[] vi = null;
if (id != null) {
vi = new VariableInfo[1];
vi[0] =
new VariableInfo(id, "java.lang.String", true,
VariableInfo.AT_END);
} else {
vi = new VariableInfo[0];
}
// job done
return vi;
}
示例8: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
// get the type
String type = (String) data.getAttribute("type");
// make it an object if none supplied
if (type == null) {
type = "java.lang.Object";
}
// return the infor about the deined object
VariableInfo[] vinfo = new VariableInfo[1];
vinfo[0] =
new VariableInfo(data.getAttributeString("id"), type, true,
VariableInfo.AT_END);
/* return the results */
return vinfo;
}
示例9: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String type = (String) data.getAttribute("type");
Object name = data.getAttribute("name");
Object value = data.getAttribute("value");
if (type == null) {
if ((value != null) || (name == null)) {
type = "java.lang.String";
} else {
type = "java.lang.Object";
}
}
return new VariableInfo[] {
new VariableInfo(data.getAttributeString("id"), type, true,
VariableInfo.AT_END)
};
}
示例10: copyTagToPageScope
/**
* Copies the variables of the given scope from the virtual page scope of
* this JSP context wrapper to the page scope of the invoking JSP context.
*
* @param scope
* variable scope (one of NESTED, AT_BEGIN, or AT_END)
*/
private void copyTagToPageScope(int scope) {
Iterator<String> iter = null;
switch (scope) {
case VariableInfo.NESTED:
if (nestedVars != null) {
iter = nestedVars.iterator();
}
break;
case VariableInfo.AT_BEGIN:
if (atBeginVars != null) {
iter = atBeginVars.iterator();
}
break;
case VariableInfo.AT_END:
if (atEndVars != null) {
iter = atEndVars.iterator();
}
break;
}
while ((iter != null) && iter.hasNext()) {
String varName = iter.next();
Object obj = getAttribute(varName);
varName = findAlias(varName);
if (obj != null) {
invokingJspCtxt.setAttribute(varName, obj);
} else {
invokingJspCtxt.removeAttribute(varName, PAGE_SCOPE);
}
}
}
示例11: setScriptingVars
public void setScriptingVars(List<Object> vec, int scope) {
switch (scope) {
case VariableInfo.AT_BEGIN:
this.atBeginScriptingVars = vec;
break;
case VariableInfo.AT_END:
this.atEndScriptingVars = vec;
break;
case VariableInfo.NESTED:
this.nestedScriptingVars = vec;
break;
}
}
示例12: getVariableInfo
@Override
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo("now", Bean.class.getCanonicalName(),
true, VariableInfo.AT_END)
};
}
示例13: getVariableInfo
/**
* Return information about the scripting variables to be created.
*/
@Override
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo("Test", "java.lang.String", true,
VariableInfo.AT_END)
};
}
示例14: setScriptingVars
public void setScriptingVars(List<Object> vec, int scope) {
switch (scope) {
case VariableInfo.AT_BEGIN:
this.atBeginScriptingVars = vec;
break;
case VariableInfo.AT_END:
this.atEndScriptingVars = vec;
break;
case VariableInfo.NESTED:
this.nestedScriptingVars = vec;
break;
}
}
示例15: setScriptingVars
public void setScriptingVars(Vector vec, int scope) {
switch (scope) {
case VariableInfo.AT_BEGIN:
this.atBeginScriptingVars = vec;
break;
case VariableInfo.AT_END:
this.atEndScriptingVars = vec;
break;
case VariableInfo.NESTED:
this.nestedScriptingVars = vec;
break;
}
}