Http://gocom.primeton.com/blog19014_15440.htm? PHPSESSID = db7e8103fd51917ea949ebab28ee6a57
CodeAs follows:
<% @ Page pageencoding = "UTF-8" Import = "Java. util. *" %>
<% @ Page import = "com. EOS. Web. taglib. util. *" %>
<% @ Page import = "commonj. SDO. dataobject, commonj. SDO. Property" %>
<% @ Include file = "/common. jsp" %>
<% @ Include file = "/common/skins/skin0/component. jsp" %>
-author (s): lijd
-Date: 17:47:57
-description:
-->
title
<%
Object root = com. EOS. web. taglib. util. xpathutil. getdatacontextroot ("request", pagecontext);
dataobject [] objs = (dataobject []) xpathutil. getobjectbyxpath (root, "outobjs"); // "outobjs" is the XPath (dataobject array) on the page stream
int Len = objs. length;
string outstr = "Length:" + Len + "content:";
for (INT I = 0; I List list = objs [I]. getinstanceproperties ();
iterator it = List. listiterator ();
while (it. hasnext () {
property pro = (property) it. next ();
outstr = outstr + pro. getname () + "-" + objs [I]. get (Pro) + ",";
}< br> outstr = outstr + "|";
}
System. Out. println (outstr );
%>
</Body>
</Html>