mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
import javax.servlet.jsp.tagext.TagExtraInfo;
|
||||
import javax.servlet.jsp.tagext.VariableInfo;
|
||||
import javax.servlet.jsp.tagext.TagData;
|
||||
|
||||
/**
|
||||
* @author mike
|
||||
*/
|
||||
public class TestTEI extends TagExtraInfo {
|
||||
public VariableInfo[] getVariableInfo(TagData tagData) {
|
||||
return new VariableInfo[] { new VariableInfo("testVar", tagData.getAttributeString("class"), true, VariableInfo.AT_BEGIN) };
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
|
||||
<!-- a tab library descriptor -->
|
||||
|
||||
<taglib>
|
||||
<tag>
|
||||
<name>test</name>
|
||||
<tagclass>TestTag</tagclass>
|
||||
<teiclass>TestTEI</teiclass>
|
||||
<bodycontent>jsp</bodycontent>
|
||||
</tag>
|
||||
</taglib>
|
||||
@@ -0,0 +1,4 @@
|
||||
package pack2;
|
||||
|
||||
public class TestClass {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ taglib uri="/WEB-INF/test.tld" prefix="test" %>
|
||||
|
||||
<test:test class="pack2.TestClass"/>
|
||||
|
||||
<%
|
||||
System.out.println(testVar);
|
||||
%>
|
||||
Reference in New Issue
Block a user