![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
文章平均质量分 79
yangliuhbhd
这个作者很懒,什么都没留下…
展开
-
struts2 文件上传下载
Struts2文件上传和下载 1. 文件上传的原理:表单元素的enctype属性指定的是表单数据的编码方式,该属性有3个值:1) application/x-www-form-urlencoded:这是默认编码方式,它只处理表单域里的value属性值,采用这种编码方式的表单会将表单域的值处理成URL编码方式。2) multipart/form-data:这种编码方式的...原创 2012-01-17 12:29:03 · 70 阅读 · 0 评论 -
struts2 文件下载
package com.cioside.web; import java.io.FileInputStream;import java.io.InputStream;import java.io.UnsupportedEncodingException; import javax.servlet.http.HttpServletResponse; import org.apache.stru...原创 2012-01-18 16:42:17 · 86 阅读 · 0 评论 -
struts2 注解配置
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotation进行配置,而是由struts2根据约定自动配置。 如何使用Convention 1. ...原创 2012-04-14 17:46:06 · 105 阅读 · 0 评论 -
struts2 convention 配置
<? xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configu...原创 2012-08-15 11:40:58 · 102 阅读 · 0 评论