This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I am developing an application using JSP/Servlets (Struts)and entity beans. I have a page wherein I display some information in the form of a XML file. I also need to display the same info in a CSV format. Can anyone help/guide me in how I can convert the XML file to a CSV format file.
You should start by trying to make a class that converts XML to your desired CSV format OUTSIDE the servlet environment. XML is complicated enough without mixing it with the servlet API. All the XML toolkit you need is built into Java 1.4 and will be available in a servlet when you need it. A good starting point is Sun's XML tutorial. Bill