Java Server Pages
I got offered a job today using JSP. I haven’t touched this language at all so I was quite intrigued to see what it looked like. After a bit of reading it seems pretty easy to write although some areas appear much more bloated than C# i.e. there’s a lot of repeating code blocks. C# is still my 2nd favorite language after ActionScript but I reckon JSP could easily be my third!
The repeating code blocks arent that bad once you wrap them into their own utility classes as they can then be summed up with a single line of code. There are some really interesting features of JSP that C# doesn’t offer, the first to catch my eye was “Container Managed Persistence”. The idea is that you write an entity bean, that’s a class which is mainly used for storing and accessing properties and that then gets automatically linked to a database. Each time you update or view a property of the class the bean container will automatically read and write the value to and from the database. Pretty neat stuff although in a lot of cases you would use “Bean Managed Persistence” which entails writing your own database functions. This then makes it more like its C# counterparts. I think this is the model that I will be using.
These are some links that I found really useful: