File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 --java.lang.NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 --java.lang.NullPointerException " Watch "Struts 2 --java.lang.NullPointerException " New topic
Author

Struts 2 --java.lang.NullPointerException

Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hi,
Im developing a simple struts2 application where im required to insert /update a row into a database . However when i try doing the same it throws a nullpointer exception The code snippet for the same from the action class and the dao class are below.Please help in solving the problem.

Action class..


DAO class--


Learning and Learning!-- Java all the way!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 --java.lang.NullPointerException
 
Similar Threads
Problem with c:foreach not working
Problem with PreparedStatment and updatequery postgresql
Inserting a checkbox value into database.
Struts config error , controller not redirecting to required screen.
Jstl not reflecting values back to servlet