最新回答 / 指尖农民
因为视频中少了一点东西,需要改下原来的WaterMarkAction中的代码,加上:MarkService markService = new ImageMarkService(); picInfo.setLogImageURL(markService.watermark(image, imageFileName, uploadPath, realPath));然后在jsp中加上: <td width="50%"><img alt="" src="${pageContext.reque...
2016-03-09
<!-- 设置上传文件 -->
<constant name="struts.multipart.saveDir" value="/tmpUpload"/>
<package name="default" extends="struts-default">
</package>
</struts>
<constant name="struts.multipart.saveDir" value="/tmpUpload"/>
<package name="default" extends="struts-default">
</package>
</struts>
2016-02-15
<struts>
<!--设置开发模式-->
<constant name="struts.action.extension" value="action"/>
<!--设置编码形式为UTF-8-->
<constant name="struts.i18n.encoding" value="UTF-8"/>
<!--省略其他配置信息-->
<constant name="struts.multipart.maxSize" value="1073741824"/>
<!--设置开发模式-->
<constant name="struts.action.extension" value="action"/>
<!--设置编码形式为UTF-8-->
<constant name="struts.i18n.encoding" value="UTF-8"/>
<!--省略其他配置信息-->
<constant name="struts.multipart.maxSize" value="1073741824"/>
2016-02-15
自己写的源码“:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
2016-02-15