Originally posted by bharatkumaryadav yadav:
Let me explain cleary
in JSP iam having fields like
I want to store the above fileds into a DataBase
when i tried to read the values from jsp to servlet it is showing
NULL Pointer Exception
What do you mean by "when I trie to read the values"?
How are you reading the values?
Are you posting an HTML form to the servlet and retrieving the values with the request.getParameter function?
If you're having trouble explaining what you're doing, post the code.
[ February 10, 2006: Message edited by: Ben Souther ]
e.g if you have a textbox in jsp with a name "id", you should use request.getParameter("id") in the servlet. Remember, the name in jsp should match the string in the request.getParameter() function.
Hope this helps