Saturday, November 27, 2010

Aga Khan Palace


Yesterday, we got a chance to go to Aga Khan Palace. This was our first trip to see something after coming back to India. It is a place of great historical importance as Mahatma Gandhi and Kasturba Gandhi were kept in Jail here during freedom struggle days.
We had taken the directions from Google, but soon realized that in India human network of finding directions is more useful than having a printout of directions. You should have a general knowledge of which way you want to go, rest you can ask.
We found the place very calm when we went inside. The campus contains very beautiful garden and green grass lawns. There is a nominal entry fee of Rs 5 per person. There are 4-5 open halls on the first floor where famous prisoners like Smt Sarojini Naidu were kept. These rooms have very rare photographs of Gandhiji, Vinoba Bhave, Abdul Gaffar Khan etc. It is very emotional to watch these selfless great people. Wonder from where did they get that kind of courage and high morals. Very rare quality in current times. So i said a silent thank you to those who didn't care for their lives so that i can have a good life today.
Then went to the Samadhi Sthal of Kasturba Gandhi and Mahadeoji Bhai. We said our prayers. There was a small khadi store near by. We purchased few items along with very delicious Ghee cookies.

Wednesday, November 24, 2010

A Sample Web Application - 1

I am trying to learn technologies using a practical approach. Right now my focus is to create a sample e-commerce web application using Java Technologies.

The technologies of focus are

1) Spring : For dependency injection
2) Struts2 : For MVC framework
3) Hibernate : For persistence
4) Maven: For build management
5) Tomcat 6 : Servlet Container
6) SVN: Source code managemnt

Since building a full scale e-com app is not in scope for small scale learning approach, i am going to take baby steps.
My first step is

Create a login funcitonality
Allow user to enter username and password. Right now the system will just say a successful validation if both username and password are same. It doesn't involve DB interaction and still able to use Spring and Struts 2 integration.

Build Instructions

Use this command to anonymously check out the latest project source code:

# Non-members may check out a read-only working copy anonymously over HTTP.

svn checkout http://amj-ecom.googlecode.com/svn/trunk/ amj-ecom-read-only

You will need a svn client for this. I am using Tortoise SVN.

To build it you just need to run ($mvn package from your command prompt). It will create a war file ecom.war in target directory. I have created a small script cleandeploy.bat for easy deployment of app to a tomcat container. You will need to edit this file to point to the correct path of tomcat dir as per your system.

Any suggestion and feedback is welcome.

I intend to add more posts as and when i add more functionality in this project.