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:

Share Article

Comments: None so far...be the first!

Leave a reply

Please fill in the form fields and improve Skynet by completing the captcha!

Thank you! All comments are moderated so yours will appear shortly.

Aye, fight and you may die. Run, and you’ll live… at least a while. And dying in your beds, many years from now, would you be willin’ to trade ALL the days, from this day to that, for one chance, just one chance, to come back here and tell our enemies that they may take our lives, but they’ll never take… OUR FREEDOM!

— William Wallace