print « Format « JSP-Servlet Q&A

1. Unable to save data from JSP which is printing in the XML format?

I am retrieving the details from the database and printing them in the XML format. It's working pretty good and can even display the same XML format in the Flex. However, ...

2. Pretty print XML data in JSP

How do I pretty print (ie. with indentation) XML data in the JSP? I have the following code:

<c:forEach items="${stuffs}" var="stuff">

3. printing in printer friendly format

Printing from a web app can be a little tricky. The web server has no direct connection to your local printer - it's not in the architecture and for security reasons it isn't likely to be added. One trick is to send out a page with a Java applet on it that does the print formatting on the client side, but ...