CrazyEngineers Anniversary Celebrations Week : It's Raining Gadgets!

Participate in Online Contests During 24th-28th November, 2014 For A Chance To Win :



::Read Details::

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 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


    Engineering Discipline:

Share This Page