To read word docx file using POI we use the XWPFWordExtractor class. This class comes from the package org.apache.poi.xwpf.extractor and has a method getText() that returns all the content of the f
Add Table to Word Doc using POI
In many cases we need to deal with tables in the Word Document. Apache POI makes it simple to add table to the Word Document. Lets see the way to add table to word doc using POI. Classes / Interfac
Add Border to Paragraph in Word Using POI
We have already see the creation of Word file and adding Paragraph to it using Apache POI. Now we will see how to add Border to Paragraph in Word using POI. Classes / Interfaces Used XWPFDocument [
Add Paragraph to Word Doc Using POI
In the last post we saw how to Create Word Doc file in Java Using POI. Now in this post we will see how to add Paragraph to Word doc using POI. Classes / Interfaces Used XWPFDocument [crayon-68ce25
Create Word Doc file in Java Using POI
Apache POI is very useful for working on with the MS office files like Word, Excel etc. In the post we will how to create word doc file in java using POI. Setup for Apache POI [crayon-68ce25b7c9541
Spring MVC PathVariable truncate issue
In earlier posts we have seen How Spring MVC Path Variable work. There is one issue with the @PathVariable. The last @PathVariable in the URL truncates the value passed after the . (dot). In this p
Spring MVC Redirect Views Example
In a Spring application you may need to redirect to a view for many reasons 1. On a form submission, a controller will get the POST data to process. If after processing the data we internally forwa
Spring MVC @RequestHeader example
Spring MVC has a annotation @RequestHeader that can be used to get the details about the HTTP request headers. Lets see some examples or Spring MVC @RequestHeader. Single @Reque
Using Themes in Spring MVC
Theme is a collection of static resources, normally style sheets and images, that affect the look and feel of an application. Themes are helpful in enriching user experience. In this post we will s
Spring MVC Ajax Handling using JQuery
When working on a web application, we need to deal with many Ajax requests. With the use of JQuery working with AJax (post and gets) in Spring MVC is very easy. Let us see some code samples of Spri