Arnob Dey wrote:This class fetches all the data from the XML file and stores them in an ArrayList called 'xmldata'.
Normally what you would do would be to create a List of some Java Bean object which represents a row in your table. Then you would put that into a response variable before forwarding to the JSP. You might have done that but your description of what you did falls short of being a useful explanation. Without understanding what you did, it's impossible to guess which of the many possible causes might be your problem.
This is also because you're trying to use a JSP for your first try at the code. Not only should you use Java code to extract data from the XML,
you should also
test that Java code before putting it into server components. So far... well, again, we can't tell how or whether you tested your code.