Tag Archives: java

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