aspose 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 Soft Skills this week in the Jobs Discussion 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: 61760
    
  67

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