Struts2实现文件上传
文件上传页面
file.jsp:
...
分类:
其他好文 时间:
2014-05-05 13:26:32
阅读次数:
261
(最近水题刷的比较多,不过还是有些收获,所以还是做个记录比较好)
http://acm.hdu.edu.cn/showproblem.php?pid=1282
分析:
题目理解起来还是简单的,基本上有两种思路:1) 将int转为string来实现; 2)直接用int做(回文串判断,相加)
第二中思路比较直接,将一个数倒置得到新的数,然后判断是否是回文数...
分类:
其他好文 时间:
2014-05-05 13:26:07
阅读次数:
276
函数名
释义
介绍
htmlspecialchars
将与、单双引号、大于和小于号化成HTML格式
&转成&
"转成"
' 转成'
>转成>
htmlentities()
所有字符都转成HTML格式
除上面htmlspecialchars字符外,还包括双字节字符显示成编码等。
ad...
分类:
Web程序 时间:
2014-05-05 13:06:39
阅读次数:
414
Struts2实现文件上传
文件上传成功后结果页面
result.jsp:
...
分类:
其他好文 时间:
2014-05-05 13:06:13
阅读次数:
265
A × B problem
Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB
Total Submission: 594 Submission Accepted: 112
Description
给你两个整数,请你计算A × B。
Input
数据的第一行是整数T(1 ≤ T ≤ 20...
分类:
其他好文 时间:
2014-05-05 13:05:38
阅读次数:
301
(为什么觉得越来越不行了,唉~果然脑子不够使啊~)
http://acm.hdu.edu.cn/showproblem.php?pid=1408
分析:
简单的模拟,不过学习了使用了ceil(double x) 函数 (math.h)
double ceil(double x) (天花板函数)
返回大于或者等...
分类:
其他好文 时间:
2014-05-03 16:20:05
阅读次数:
259
1、具体错误如下
2014-5-2 21:38:29 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error
严重: Exception occurred during processing request: null
java.lang.NullPointerException
at com.you.file.upload.actio...
分类:
其他好文 时间:
2014-05-03 16:08:37
阅读次数:
353
本文出自:http://blog.csdn.net/svitter
原题:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1053
题意:完全背包不解释。。直接贴代码。。
#include
#include
#include
using namespace std;
#defi...
分类:
其他好文 时间:
2014-05-03 16:06:14
阅读次数:
324
Struts2实现文件上传
配置文件struts.xml
<!--
/*
* $Id: struts.xml 1364077 2012-07-21 12:57:02Z lukaszlenart $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor licens...
分类:
其他好文 时间:
2014-05-03 15:41:44
阅读次数:
348
http://acm.hdu.edu.cn/showproblem.php?pid=1228
分析:
我只是想练习一下map的用法,不然又忘了。。。
代码:
//hdu 1228
#include
#include
#include
#include
#include
using namespace std;
map d;
void init()...
分类:
其他好文 时间:
2014-05-03 15:40:58
阅读次数:
232