一个小小的Strust2例子然后发现css,js,图片用不了,debugger下发现无法访问这些资源(404错误),妈的,那个例子明明可以的,起码从书上的图片看。发现是web.xml中的过滤器的问题,代码是这样的:web.xml
struts2 org.apach...
分类:
Web程序 时间:
2014-06-07 00:31:40
阅读次数:
347
Json在js,jquery中可以直接使用,比如下串:{ "from":"en" ,"to":"zh"
,"trans_result": [ {"src":"today","dst":"\u4eca\u5929"}
]}可以直接使用data.from即可获取到”en”.但是在c#中不可以。要获取值,...
分类:
Web程序 时间:
2014-06-06 19:57:34
阅读次数:
390
注意点 private File
image;//对应的就是表单中文件上传的那个输入域的名称,Struts2框架会封装成File类型的 private String
imageFileName;// 上传输入域FileName 文件名 private String im...
分类:
其他好文 时间:
2014-06-06 17:36:01
阅读次数:
255
一、我对struts2的理解。1、struts2
是一个按MVC模式设计放入web层框架,其实它就是一个servlet。这个servlet命名为ActionServlet,或者是它的一个子类。它的工作流程是这样的浏览器发送HTTP请求===》进入到struts2框架的拦截器struts2prepar...
分类:
其他好文 时间:
2014-06-06 13:57:21
阅读次数:
208
1、基本用法JFileChooser dlg = new
JFileChooser();dlg.setDialogTitle("Open JPEG file");int result =
dlg.showOpenDialog(this); // 打开"打开文件"对话框// int result =....
分类:
其他好文 时间:
2014-06-06 11:37:09
阅读次数:
249
public final intgetMeasuredHeight()Added inAPI
level 1LikegetMeasuredHeightAndState(), but only returns the raw width component
(that is the result is...
分类:
移动开发 时间:
2014-06-06 09:15:59
阅读次数:
494
Swift 使用来声明泛型函数或泛型类型:1 func repeat(item: ItemType,
times: Int) -> ItemType[] {2 var result = ItemType[]()3 for i in 0..times {4
result...
分类:
其他好文 时间:
2014-06-06 07:52:02
阅读次数:
299
1 2 struts.xml中可以配置 3 指定全局资源文件 4
全局资源文件/包范围资源文件/动作类的资源文件 5 全局资源文件:src下放到WEB-INF/classes目录下 6
包范围资源文件:服务于Java类中的包下的动作类的。 ...
分类:
其他好文 时间:
2014-06-06 07:05:05
阅读次数:
369
1 2 3 4 5 6 Struts中的标签 7 8 9 10 11 13 -->14 15
16 17 18 19 20 21 22 23 24 ...
分类:
其他好文 时间:
2014-06-05 16:11:30
阅读次数:
297
applicationContext.xml<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http:..
分类:
编程语言 时间:
2014-06-04 12:51:48
阅读次数:
476