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 using struts2 i want to upload image but nullpointer exception occur 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
Reply locked New topic
Author

using struts2 i want to upload image but nullpointer exception occur

Rahul Bhalla
Greenhorn

Joined: Jan 28, 2012
Posts: 17
Hello Every one
I m new Struts 2 and i m trying to upload a image on server with the help of struts 2 but i was unable to do that i m pasting my code here ..
please tell where i m wrong

here is my action class

my beans class is


now my jsp from where i set my bean



my property file



struts.xml

when i deploy my application i got nullpointerexception and on line number 28 of the action class i found it prints null on server
please suggest me what can i do...
thanking you
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using struts2 i want to upload image but nullpointer exception occur
 
Similar Threads
Struts 2 Fileupload problem
problem in excluding the parameter in validation interceptor
upload image usinng struts2
Interceptor make chages which Unknown to us.
how to upload an image to a specific folder & displaying it in struts2