CrazyEngineers Anniversary Celebrations

The CrazyEngineers Anniversary Celebration Week concludes on November 28th. Do not miss out on a chance to participate in the ongoing contests and win grand prizes!

Creative Writing (Live) | Deadline: 10:00 PM (IST) [Update: Over]

Engineering Life Photo Contest (Live) | Deadline: 11:00 PM (IST) Today

Mega Contest: Engineering For Change In India, Project Report Contest (Live) | Deadline: 11:59 AM (IST), Tomorrow

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