I need to get a value in a form from the
jsp, then pass to the
servlet, and then store it to the DB using Spring and
JDBC
I constantly get a NullPointer exception in a line
rd.addResult(r) of my servlet (this line is supposed to make an instance of ResultDaoImpl and add it to DB )
i cannot understant why
i think the problem is in the way i am using spring beans and manage creating objects, i ask the community for some code review
details:
I have a JSP wich asks user to enter the expression paramenter
Here is a piece of a servlet:
It receives a Parameter from JSP (expression),
creates an object Result, sets the Result's value to "expression"
creates a jdbcTemplate
adds this
here is my ResultDaoImpl class:
my spring-config.xml:
My DAO Implementation class:
Best Regards, Tania.