Bruno Raljić

A Java Developer's Blog

January, 2013

How to rename a large number of files using Java


Use case Imagine you have about 20 folders and each folder has 50 – 100 pdf documents in it. Pdf file names have similar structure, let’s say year-month-user_id.pdf e.g. 2012-oct-396.pdf. If, for some reason, user_id has changed, perhaps after a db migration, you’ll need to edit the names of all pdf files in order to make […]

, , , ,

AJAX with Spring MVC


As I continued to explore the world of Spring MVC, I wondered how the AJAX calls are handled and I found it to be very simple. I’ll present you a simple example, including a little bit of jQuery, JSON, twitter4j etc. Example description Let’s say we want to display specific tweet on our page. User […]

, , , , ,

How to exclude css and js files from Spring MVC dispatcher mapping

After setting up basics for the Spring MVC dispatcher, I included the CSS file but without any results. First I thought the path isn’t declared correctly (I used relative path for the first time). Then I tried with contextPath: but still no changes on the page. After I tried to access this css file directly […]

, , , ,