Although most applications use SQL statements, we may need to call stored procedures instead. For instance, we could reuse existing stored procedures instead of crafting new codes. As a result, we do not need to create new test cases, and
Tomcat 8 and Java EE CDI
This post demonstrates how Dependency Injection works with Java EE CDI and Tomcat 8.We’ll display some text from a bean injected into our Servlet via CDI.
JSF – Check If User is Logged In with preRenderView
This post demonstrates how to check if user is logged in before the page is displayed to the user.
JSF – Get HTTP Session Attribute
This post demonstrates how to retrieve a attribute from an HTTP Session object in JSF 2.
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
Modify XML Element Content in Java using XSLT
This post demonstrates how to modify some parts of the XML content in Java using XSLT. The example herein is rather straight-forward but will provide us a basic working codes before going further to learn the more advanced stuff.
How to Add Android SDK in IntelliJ IDEA
This post demonstrates how to add an Android SDK in IntelliJ IDEA.
MySQL JSON Type
MySQL has started supporting JSON column data type since MySQL 5.7.8. This post explores this new type and its basic usages.
Java Compiler Weird Error in Travis CI due to Implicit Exception type
We were trying to build this Maven project in Travis CI and got a weird compilation error. After modifying the codes to explicitly define the exception types.
Using Spring Retry API
Did a method just throw an Exception? Well, we could re-invoke it a few times more before giving up using Spring’s Retry API. Last time we touched on BackOff and related interfaces and classes which is used in this API.