Im currently new in java ee. I need help on how to pass my data from jsp to my servlet to fil up my query. Whenever i run, the error is being catch and i print out the exception. It says java.null.exception.. I couldn't find out where my error is..please help me... thanks..
Any of your form inputs which are disabled do not get submitted, so they never reach the servlet as request parameters. Take out all the disabled attributes for the data you want to show up in the request.
Also you have this in your Servlet for error handling:
That is very bad practice: You should print the exception's message and stack trace to a log file at least, and not just the e.toString() to the page's output. That would help you figure out which parameter is null.
Joined: Dec 10, 2012