`
退役的龙弟弟
  • 浏览: 446656 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
一、inperceptor配置使用过程 1.配置拦截器 2.使用拦截器 通过下图可以知道,拦截器需要先在<interceptors></interceptors>中配置,然后通过<interceptor-ref name=""></interceptor-ref>使用。 二、配置默认拦截器   <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Ap ...
http://github.com/SpringSource/spring-framework.
TortoiseSVN是windows平台下Subversion的免费开源客户端。 一般我们都是先讲讲服务器的配置,然后再讲客户端的使用,但是在TortoiseSVN上,却可以反过来。因为,如果你的要求不高,只是想在本机,或者是可信任的局域网络中使用SVN版本控制,可以不需要安装SVN,而只使用TortoiseSVN即可。 接下来就来讲讲TortoiseSVN的使用。 1、下载TortoiseSVN。下载地址:http://tortoisesvn.net/downloads,其中也包括了中文语言包的下载。 2、安装TortoiseSVN。很简单,一路“Next”即可。安装完Tortois ...
Subclipse是eclipse的一个svn的插件,哄骗Subclipse可以或许便利进行代码的版本经管和协同开辟 官方网站:http://subclipse.tigris.org/ 最新版本:1.8 (更新于2011-1-25) 安装步调: 一 自动安装 打开eclipse->Help->Install New Software…。
注:struts2提供的下载功能,在action中只需要提供一个返回inputStream流的方法 实现文件下载的流程 jsp视图(form表单)->struts.xml(找到对应的action)->xxxAction.java(excute())->struts.xml(找到对应的result这里是“sucess”),通过inputName属性找到对应的InputStream方法->xxxAction调用getInputStream()方法,得到返回值 1.struts.xml   <?xml version="1.0" enco ...
一、手动实现文件过滤 1.uploadAction.java   //文件过滤属性,通过struts.xml文件配置allowtypes属性值 private String allowtypes; public String getAllowtypes() { return allowtypes; } public void setAllowtypes(String allowtypes) { this.allowtypes = allowtypes; } 比较当前上传文件的格式和允许上传文件格式 //过滤文件 public ...
1.upload.jsp   <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@taglib uri="/struts-tags" prefix="s" %> <% String path = request.getContextPath(); String basePath = request.getScheme ...
以下,作者讲述了在复习Java继承时的一些心得。看一段简单的代码 public class Test { public static void main(String[] args){ B b=new B(0); int y=b.getY(); } } class A { public static int x=2; //1. private int y=2; //2. protected int z; //5. ...
Global site tag (gtag.js) - Google Analytics