o/p

7 views
Skip to first unread message

sundar rajan

unread,
Jan 22, 2008, 9:03:22 AM1/22/08
to json-...@googlegroups.com

<%@ page language="java" contentType="text/json; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>
<%@ page import="com.file.app.model.FolderEntry"%>
<%@ page isELIgnored="false"%>
<jsp:useBean id="sandbox" class="com.file.app.model.FolderEntry" scope="session">
</jsp:useBean>
<json:object>
 <json:property name="identifier" value="${sandbox.name}"/>
 <json:property name="label" value="${sandbox.name}"/>
  <json:array name="items" var="child" items="${sandbox.children}">
  <json:object>
    <json:property name="name" value="${child.name}"/>
    <json:property name="type" value="folder"/>
  </json:object>
  </json:array>
</json:object>
i got the o/p using this.
Reply all
Reply to author
Forward
0 new messages