在JSP中显示具有多个子项的父列表

时间:2012-12-07 06:05:34

标签: java json web-services jsp spring-mvc

我必须从Spring MVC / Spring Maven项目中调用Rest API,它具有以下响应JSON:

Content-Type: application/wrml
{
    parent-repository: {parent-repositoryId}
    type: {repository-type}
    object-types: {object-typeId-list}
    children
    {
         {repositoryId1} 
         {
             type: {repository-type1}
             object-types: {object-typeId-list}
             children
             {
              …
             }
         }
…
         {repositoryIdN} 
         {
             type: {repository-typeN}
             object-types: {object-typeId-list}
             children
             {
              …
             }
         }

    }  
}

响应是搜索的存储库。如何在JSP中显示Parent及其Children的响应?我是否需要列出它们才能显示?

0 个答案:

没有答案