Archive for March, 2008

Using parent bean definitions in Spring

March 22nd, 2008 by stevi | 2 comments

This post on the JavaRanch Big Moose Saloon led me to fire up Eclipse and write some test code. The question is basically how can you use the ability to map a parent bean as part of a bean definition in Spring. Let’s look at three classes and see how they can be mapped using [...]

Getting Twhirl to recognize Firefox as Default Browser in XP

March 22nd, 2008 by stevi | 2 comments

I signed up for Twitter way back in the day when picking a short name (smd) was important because most people I knew were still using it for the intended SMS purpose. Like so many other new services, I more or less forgot about it, occasionally checking back when someone mentioned it. In the past [...]

Making the job worthwhile

March 21st, 2008 by stevi | 0

We had a very fruitful. frank conversation with the business analyst for the main project I’ve been working on for the last two years. We discovered a lot of the pain points for users and now know there’s concrete things we can do in the next sprint or two to really help them out. But [...]

Using two Membership Providers for ASP.NET logins

March 20th, 2008 by stevi | 17 comments

I quite like the Microsoft Membership Framework for handling membership roles, authentication, and security resources in ASP.NET applications. It’s easy to create the initial user login and management framework for a new application, then swap in a more sophisticated Provider as needed. For my current project, we have a new requirement to allow logins against [...]

Creating OpenSearch plugins for Mozilla Firefox

March 15th, 2008 by stevi | 1 comment

I frequently use the CocktailDB web site to find and compare cocktail recipes. Being a lazy programmer who uses Firefox, I got fed up with having to go to the main search page to start a new search, so I finally decided to experiment with making an OpenSearch plugin so I could start a search [...]

wrong user cached for a team foundation server

March 14th, 2008 by stevi | 4 comments

A problem I just faced: I was trying to use Visual Studio 2005 on my Windows XP box to connect to a Team Foundation Server (TFS) via VPN to check out some source code. I would attempt to connect to the server, and would then receive the error message that USERA did not have permission [...]

Role aware ASP.NET web controls

March 12th, 2008 by stevi | 5 comments

A common feature I’ve found necessary for web applications is role-based security at the field level. For example, I may have a form that allows editing a user’s information. The requirements may include the rule that only certain types (roles) may edit certain fields. This can be accomplished in myriad ways. You can create a [...]

JTOpen: Open source OS/400 and i5/OS drivers

March 10th, 2008 by stevi | 0

My most recent project required me to use JDBC to connect to the database server on an OS/400 server. I had a heck of a time finding drivers, going around and around again on IBM’s site. The client probably had the drivers, but they were relying on us to tell them what went where and [...]

Spring, JDBCTemplate, and Stored Procedures, Part II

March 9th, 2008 by stevi | 10 comments

In my previous post, I gave an example of code on how to use Spring’s JDBCTemplate to call a stored procedure and process a returned result set using the simple query. Here’s the code to do the same with overriding Spring’s StoredProcedure class. The advantage in this method is that using the declareParameter method can [...]

Processing Stored Procedure result sets in Spring

March 8th, 2008 by stevi | 9 comments

Recently, I was using Spring‘s JDBCTemplate for my Data Access Layer (DAL). I had a stored procedure that returned a result set, and had to spend quite a bit of search time finding an example of how to process it. I managed to work it out using both the method of overriding Spring’s StoredProcedure and [...]