Using iText for Java we can create PDF documents. Here we will see how to build a table in the PDF document and how to style it.
We can read the content of a zip file “unzip it” using java.
How to convert String to InputStream? Sometimes we need to pass String as InputStream, here we will see how to converted it.
Servlet 3.0 is a major release with important new features. One of these feature is asynchronous support. Here we will see how to configure a servlet to be asynchronous.
iText “XML Worker” allows developers to convert XML files to PDF documents in a programmer-friendly way. iText can also convert HTML to PDF with the CSS style implemented on HTML elements.
XStream is a simple Java library to convert objects to XML and back again. XStream, also provides many features to control the conversion from/to XML.
Java java.util.List & java.util.Map are highly used data structure, here we will see how to create, populate, iterate and sort objects of these types.
How to convert InputStream to String? There many ways to do so. We will see four ways.
How to convert InputStream to String?
This is a complete example showing how to send jQuery.Ajax() POST request containing data in JSON format to the server, and how to receive this JSON content, parse it and map it into Java objects in the server “servlet” side. Also, we will see how to send the list of all received data back to the client in JSON format and how the client can parse this data and display it.
- How to send jQuery.ajax() POST request with data in JSON format?
- How to receive JSON data in Java servlet, parse it and map it into Java objects?
- How to send data back to the client in JSON format too?
jQuery-File-Upload js library is “so far” the most elegant, smart, simple..etc js library I have used to upload files. Simply it is amazing. It supports async upload “Ajax”, multiple files upload, drag&drop, progress update and a lot more. Here we will see how to upload multiple files to Java “Servlet” app and how to deal with uploaded files using Java Servlet API or Apache FileUpload Library. Bootstrap has been used in this example to make the UI more attractive.