Java Corner

This corner is all about learning Java/J2EE Technologies.

Saturday, 8 September 2012

JavaScript: Access session variables in Javascript

The other day, I was working on JSP & an Action file on my project in office, and suddenly I got stuck when I wanted to initialize a variable I was using in JQuery code with the value of session variable. I had used it earlier in some other JSP, but then some how it skipped my mind.  So I thought of sharing the same here, if it might be of any help. <%= session.getAttribute("variableName")%> hope it helps... ...

Saturday, 25 August 2012

Java: Java Collections and Generics in a Nutshell.

Java Collections and Generics The Java Collections Framework Java Generics 13.1. The Java Collections Framework Java arrays have limitations. They cannot dynamically shrink and grow. They have limited type safety. Implementing efficient, complex data structures from scratch would be difficult. The Java Collections Framework is a set of classes and interfaces implementing complex collection data structures. A collection is...