How to teach Yourself Struts2 's Struts2 file upload [VIDEO]
Previously wrote an article "intends to do a video tutorial on how to learn computer-related technology," Youku can not upload, had to upload to Baidu Cloud:
Http://pan.baidu.com/s/1kTDsa95
As there is no sound in this video, we will talk about it in the next lesson, "Struts2 database Access".
Note: Sorry, I do not know why in this recording process is not sound, I am sorry, this section is focused on a null pointer exception, because the FileUpload this interceptor to be placed before the other interceptors do not have problems, the material to the code is problematic.
Error:
<interceptor-ref name= "Basicstack" > <interceptor-ref name= "FileUpload" > <param name= " Allowedtypes ">image/jpeg,image/gif</param> </interceptor-ref>
That's right:
<interceptor-ref name= "FileUpload" > <param name= "Allowedtypes" >image/jpeg,image/gif</param > </interceptor-ref><interceptor-ref name= "Basicstack" >
How to teach Yourself Struts2 's Struts2 file upload [VIDEO]