Author Archives: atechnicaljourney

Bootstrap and Angular

I’ve been adding Bootstrap and Angular to my existing Struts2 site.  They improve the look and feel of the site and make it feel more responsive to the user.  There are some issues though refactoring a Struts2 page-refresh style site to … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Refactoring for Struts2 security changes.

I recently upgraded my Struts2 version from 2.3.15.1 to 2.3.16. There are a couple of important security upgrades in this update (http://struts.apache.org/development/2.x/docs/s2-018.html and http://struts.apache.org/development/2.x/docs/s2-019.html) so it is worth upgrading. One of the changes was to turn off Dynamic Method Invocation … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

JSON Services using Struts2

I’ve implemented some of my front-end using javascript (jquery) and needed to expose some JSON services to enable this.  As I’m using Struts2 as my MVC framework.  There is a Struts2-jQuery tag library you can use.  However, this post is … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

Hibernate – Saving a Many to Many relationship.

I am mapping my object model using Hibernate annotations.  I came across a issue when trying to save a entity bean to a table, along with a Many-to-Many relationship to a row in another table.  The exception I got was … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Hibernate – Pure native scalar queries are not yet supported

I’m using Hibernate annotations for my database access.  This works fine most of the time, but with complex queries the Hibernate hql can get tricky.  When I know exactly how to write the query using sql I sometimes give in … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Including html in Struts2 form tags.

Recently I had an issue using Struts2 tags to create a form that contained a checkbox.  I wanted the label for the checkbox to contain a link (for example – http://www.findfriendsforfun.com/register.action), but the helpful Struts2 tags kept escaping the html.  … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment