1. Click: Hunt for India's Best Academic Project Contest - 2016 

    All students pursuing B.E. and B.Tech are eligible to apply. [Registrations Open!]

    Dismiss Notice

How to traverse/iterate through a nested JAXB object to display it in JSP page?

Discussion in 'Computer Science | IT | Networking' started by Bapan Mazumder, Jul 3, 2014.

  1. Bapan Mazumder

    Bapan Mazumder
    Expand Collapse
    Apprentice

    Engineering Discipline:
    Computer Science
    Hi, I constructed a soap request and received the response. I unmarshalled the response using JAXB context and got the object which contains the response. Now I can access the data in the response object via get..()/..getValue() methods and print it in the console. But the issue arises when I try to send the response object by adding it to a ModelAndView attribute to a JSP page. The error I get is JSP don't know how to iterate over the given items(as I try <c:ForEach/> loop). Since the response object contains hundreds of data and also inner JAXB<> arrays, its not possible to set all the data to a user bean and then access.
    Can anyone advice me as how to iterate over the response object in the JSP page?
     
  2. Kaustubh Katdare

    Kaustubh Katdare
    Expand Collapse
    Administrator

    Engineering Discipline:
    Electrical
Draft saved Draft deleted

Share This Page