
struts
hospop
这个作者很懒,什么都没留下…
展开
-
struts2 单个文件上传
package com.bse.action;import java.io.*;import java.util.UUID;import com.opensymphony.xwork2.ActionContext;import org.apache.struts2.ServletActionContext;import com.opensymphony.xwor原创 2013-11-12 10:01:00 · 890 阅读 · 0 评论 -
Struts 1 入门之框架搭建
手动部署框架---- 第一步、 复制框架包到libantlr.jarcommons-beanutils.jarcommons-digester.jarcommons-fileupload.jarcommons-logging.jarcommons-validator.jarjakarta-oro.jarjsf-api.jarjsf-impl.jar原创 2013-11-24 13:46:35 · 779 阅读 · 0 评论 -
struts.xml中的结果类型与视图
实际上在Struts2框架中,一个完整的结果视图配置文件应该是: 参数值 结果类型的作用返回类型在Struts2框架下的struts-default.xml中可以找到所支持的结果类型.常用的有3种:1、请求转发(dispatcher)这是Struts2的默认结果类型。请求转发只能请求转发至同一个web应用。利用请求转发浏览器转载 2013-11-06 14:21:11 · 763 阅读 · 0 评论 -
struts.properties配置详解
在Struts2的核心包中org\apache\struts2文件夹下可以找到Struts2的一个默认配置文件default.properties。有时为了调试方便我们可以更改部分默认内容。具体的方法是在工程的WEB-INF/classes文件夹下简历一个struts.properties文件,并将要修改的信息配置到该文件中struts.properties:转载 2013-11-06 14:10:56 · 762 阅读 · 0 评论 -
struts.xml配置详解
struts.xml是我们在开发中利用率最高的文件,也是Struts2中最重要的配置文件。分别介绍一下几个struts.xml中常用到的标签1、利用include标签,可以将一个struts.xml配置文件分割成多个配置文件,然后在struts.xml中使用标签引入其他配置文件。比如一个网上购物程序,可以把用户配置、商品配置、订单配置分别放在3个配置文件user.x转载 2013-11-06 14:08:22 · 718 阅读 · 0 评论 -
Struts2 搭建步骤
---- 1.将struts2所需要的包复制到工程的lib目录---- 2.Struts2通过StrutsPrepareAndExecuteFilter过滤器来启动,在web.xml文件中输入如下配置:struts2org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter原创 2013-11-24 13:38:42 · 714 阅读 · 0 评论