Fix JSP compilation error in WildFly 8 using Java 8

My current project run on WildFly 8 using Java 7. I was assigned the task of migrating the existing project to work on Java 8. So my first target was to install Java 8. After installing Java 8 my next target was to deploy my project in WildFly 8 and start the server. Everything went fine until i got stuck at JSP compilation error. In this article we would learn how we can fix the JSP compilation error in WildFly 8 using Java 8.
Continue reading

Avoid Struts2 warning in log4j

Logs are an important asset for any web/console based application. It helps use to debug how the application is behaving during development or production systems. Apache Log4J is one of the most widely used logging framework for Java based applications.

Well above was some introduction to logs and Apache Log4J. Now let’s go to the mood point, Strut2 is an widely used MVC for Java based web applications. In general configuration of Struts2 is pretty straight forward. However when we see the logs we see lot of exceptions from Struts2 which are just an warning. But because of this warnings we might miss the actual exception. In this article we would learn how we can disable the warning logs from Struts2.
Continue reading

Search for class files inside Jar Package

In production environment we often come across scenarios where we want to search for class files among the jars loaded in class path. Most common approach we take is to search in our local editor, which is time consuming. The better approach is to use the ‘find’ command provided by Linux.
Continue reading

Java – Check whether Date is in DayLight Saving Time

I am using TimeZoneJS to compute the timezone date in JavaScript. But there is a limitation in TimeZoneJS to provide an interface to check whether the date provided is in DayLight Saving Time(DST). To check whether date in particular timezone is DST we had to perform server side computation in Java. In this article we would learn how we can check whether particular date is in DST.
Continue reading

Iterate through HashMap using Struts2 Iterator

I am pretty much fond of using JSTL also called as JavaServer Pages Standard Tag Library and tag libraries inside JSP code, the only reason i see it using is to get rid of the JSP scriptlet code written in between HTML codes. But i was stuck at one point when i wanted to iterate through HashMap using Struts Iterator. After much googling i found the solution and in this article we would understand on how to iterate through HashMap using Struts Iterator.
Continue reading