wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 60794
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: using struts2 i want to upload image but nullpointer exception occur
 
Similar Threads
upload image usinng struts2
problem in excluding the parameter in validation interceptor
Struts 2 Fileupload problem
Interceptor make chages which Unknown to us.
how to upload an image to a specific folder & displaying it in struts2