Please show us the stack trace for this error. Also, please tell us the circumstances for the error. Do you get it when the page is first attempting to display, or do you get it when you press the submit button from this page?
this is the first page of my application when i click on submit button insted of showing the error messge it is leading to nullpointer exception.
posted 13 years ago
Ninety-nine percent of the time, a Null Pointer Exception indidcates that something is wrong in your own application, not in Struts. Look at the stack trace that was produced with the NPE, and look at the last method that was executed before the NPE occurred. That should give you an idea what caused it. If you compiled with debugging enabled, it will even tell you what line number in the source code to look for.