Blog

Welcome to the Tekstenuitleg.net blog!

Spring 3(+) Security - authorization with roles and rights

Monday, November 05, 2012 5:44 PM

Enterprise applications often use an authentication setup that is comprised of roles and rights. Users have a number of roles and roles have a number of rights in such an approach. The advantage of this approach is that a structure of roles and rights offers flexible and fine grained access control to resources.

Below is a database layout that is often used to implement the roles/rights authorization paradigm. In this article I am going to show you

  1. How to configure Spring Security.
  2. How to create your own login form.
  3. How to authenticate users using your own authentication provider and authentication service.
  4. How to do all this using the table layout below, so that we can have flexible and fine grained access...
    » Lees verder

Deploying a WAR to Tomcat using Maven

Saturday, July 14, 2012 8:18 PM

Most articles you will find about automatically deploying a WAR to Tomcat using Maven will mention the Tomcat Maven plugin. I was trying to use this plugin, but I didn't get it to work. The manager app kept returning a 403 even though I followed the instructions and added the credentials to my Maven settings.xml file. Also, the plugin kept trying to publish my app to a path under root, while I wanted it published to the root of the server (ROOT.war). The plugin kept using the artifact-id as an application path. 

ANYWAY, I decided to return to good old Ant, because...
» Lees verder

Remote debugging with Tomcat (7) and Intellij

Saturday, July 14, 2012 6:44 PM

It took me a while to find out how to set up Tomcat 7 to allow for remote debugging from Intellij, so I decided to put the process up here for my own future reference and hopefully for other people's convenience. This small tutorial is aimed at Windows users, but it shouldn't be too difficult to figure out how to do it on Linux.

Configuring Tomcat 7

Follow these steps to configure Tomcat.

  1. Go to your Tomcat installation directory and then into the bin folder.
  2. Create a new file called setenv.bat. (This file will be automatically read by catalina.bat)
  3. Add the following content to setenv.bat: » Lees verder

Umbraco CMS review

Tuesday, December 06, 2011 7:18 PM

I like a bit of change in my work every now and then. When I first started using Umbraco I had been working on a Java GWT application for almost a year, so I welcomed a new project with a new CMS to discover. I was lucky that Wrox had just published the first ever book on Umbraco when my project started, so I ordered a copy of Umbraco User's Guide  to read up on Umbraco.

Umbraco User's Guide is a good beginners guide to Umbraco for both developers and administrators. It covers the most important aspects of Umbraco in just 320...
» Lees verder

Search engine optimization an hour a day - book review

Tuesday, November 29, 2011 2:38 PM

Since I started this website it has been doing pretty well in the Dutch search engines... or let me just say in Google Netherlands, because in the Netherlands all we use is Google. 95 percent of searches are performed via Google and the other 5 percent I don't even know. Probably some local Dutch search engine, like zoeken.nl.

In recent months however the number of visitors has declined. I saw quite a big decrease in februari 2011 and another one in october 2011. I must admit I hadn't created new content for almost a year then, so punishment had to come some day and it did. Google decided to rank my pages lower and to take away 1 point of my Pagerank. So I started reading and investigating.

I learned...
» Lees verder

Jumping cursor on Dell laptop (solution)

Tuesday, November 29, 2011 2:10 PM

The cursor of my beloved Dell Latitiude E6540 laptop has developed the annoying habit of randomly jumping to a different part of the screen. It happens at random time intervals and it has been doing this since a couple of days. When I am typing the cursor will all of a sudden jump to a different position in the text, causing me to mess up my own text.

I did some searches on Google and it seems the jumping cursor problem is not new and not limited to Dell laptops, although Dell laptops seem to be overrepresented. At least, I am not alone!

In this video you see me typing some text (in Dutch). You can see the cursor jumping to the top of...
» Lees verder