Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Maurizio Cucchiara
I'm pretty sure that logoName is always null in the following code line. File(filePath, imageDetailBean.getLogoName()); According with the docs [1], you should change your setter from setLogoName to set setLogoFileName [1] http://struts.apache.org/2.x/docs/file-upload.html Twitter     :http://w

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Dave Newton
What does your debugger tell you is null? On Mon, Apr 23, 2012 at 10:32 AM, rahul bhalla wrote: > 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 co