我struts下载中文名字的图片 总是出错,大家帮我看看显示的错误是:
 Can not find a java.io.InputStream with the name [abc] in the invocation stack. Check the <param name="inputName"> tag specified for this action.但我的Action类中定义了
public InputStream getAbc()throws Exception{
   return ServletActionContext.getServletContext().getResourceAsStream(inputPath);
}
我的struts是这样配置的
<action name="download" class="com.tj.DownAction">
   <param name="inputPath">\upload1\大学.jpeg</param>
   <result name="success" type="stream">
    <param name="contentType">image/bmp,image/png,image/gif,image/jpeg,image/pjpeg</param>
<param name="inputName">abc</param>
<param name="contentDisposition">filename="tj.jpeg"</param>
<param name="bufferSize">4096</param>   
   </result>  
 </action>