foreachtei.java

来自「It gives some some of examples of java s」· Java 代码 · 共 54 行

JAVA
54
字号
package examples;import javax.servlet.jsp.tagext.*;/** * A TagExtraInfo class for the TagExtraInfo * * The tag is has 2 required attributes, row and in. * We assume that the taglibrary accurately describes this requirement. * * The value of row defines a scripting variable within the scope * of the tag. */public class ForEachTEI extends TagExtraInfo {      /**     * Constructor     */    public ForEachTEI() {	super();    }    /**     * Define a nested variable for the ResultSet.     */    public VariableInfo[] getVariableInfo(TagData data) {	String rowValue = data.getAttributeString("row");	if (rowValue == null) {	  throw new Error("TagLibrary inconsistency");	}	VariableInfo info	  = new VariableInfo(rowValue,			     "java.sql.ResultSet",			     true,			     VariableInfo.NESTED);	VariableInfo[] back = { info } ;	return back;    }    /**     * No further checks.     */    public boolean isValid(TagData data) {	return true;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?