Thanks for the suggestion DAVID
i will take of that in future
now i get into another problem
when i run my application means homepage and leave the field blank then i redirect to the home page with proper error massage
i am redirected to the home page but no message is displayed
here is my homepage
Well, you don't have that key in your resources file, unless you only posted part of it, which wouldn't be very helpful. I wouldn't think that would cause an NPE, though, but you also don't post the stack trace.