output « Format « JSP-Servlet Q&A





1. Generate XML output to a fitting format to match my XSLT    stackoverflow.com

Hey, I am writing a quiz application with Java Servlets. My quiz data is written into XML files, i.e.: <quiz><question><ask>...</ask><answer>...</answer>...</question></quiz>. I want to display every question and their answers on a single ...

2. Format output from Iterating over a list of Javabeans    stackoverflow.com

I have an ArrayList of javabeans that I iterate over in a JSP view using <c:forEach Now I want to format the output and provide subtotals based on the groupings. ...

3. display output table in excel file format    coderanch.com

The easiest way to get the downloaded data to load up in Microsoft Excel on Windows machines is to output it in simple delimited text, like a CSV file. Just copy the following into a text editor, save it as .csv, and Excel will probably open it by default, or if you load it into Excel, it will figure out that ...

6. Get output of jsp in string format.    forums.oracle.com

Oops, I see you want to call JSP from a servlet, right? Why not convert the bulk of your servlet into Java code that a JSP page can use? Or, if you want to keep your servlet as a part of the controller pattern, you should just forward the preprocessing result to the JSP page for display.