struts.xml<!--OGNL表达式-->
<packagename="Ognl"extends="struts-default">
<actionname="getOgnl"class="com.cb.Ognl"method="TestOgnl">
<resultname="list">/WEB-INF/page/Ognl.jsp</result>
</action>
</package>Ognl.jsp<..
分类:
其他好文 时间:
2015-06-02 06:55:23
阅读次数:
104
求 n 个圆的面积并算法参照 这篇博客#include #include #include #include #include #include #include #include #include #include using namespace std;const int inf = 0x3f;...
分类:
其他好文 时间:
2015-06-01 20:08:49
阅读次数:
163
代码:NPP_SAVENPP_CONSOLE1setclassbin=D:\mydoc\Workspaces1\MyWeb\WebRoot\WEB-INF\classessetclasspath=D:\mydoc\JarLib\javac-d$(classbin)-Djava.ext.dirs=$(classpath)-cp$(classbin)-encodingutf8“$(FILE_NAME)”if0==$(EXITCODE)gotoabcgotowrong:abcjava-cp$(classp..
分类:
编程语言 时间:
2015-06-01 14:57:04
阅读次数:
158
<beanid="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"value="/WEB-INF/jdbc.properties"/></bean>
分类:
编程语言 时间:
2015-06-01 01:04:10
阅读次数:
197
http://poj.org/problem?id=1258
多么单纯的mst!
#include
#include
using namespace std;
const int INF=103;
int graph[INF][INF];
int f1[INF];
int low[INF];
int res,n;
int prim()
{
f1[1]=1;
memset(lo...
分类:
Web程序 时间:
2015-05-31 09:31:15
阅读次数:
124
到struts2官网上面下载struts2的jar包,然后解压。struts2的入门程序,实现简单的用户登录,struts2里面的helllo world。利用eclipse的开发工作如下:1.首先建立一个web项目struts_01_hello2.在WEB-INF下的lib目录导入struts2所...
分类:
其他好文 时间:
2015-05-30 19:38:49
阅读次数:
222
问题1:未找到org.postgresql.Driver在写普通java程序时,只需将该驱动包加载进来即可,但写web程序时,必须将postgresql的驱动包放到project_name/WebContent/WEB-INF/lib下,刷新即可。...
分类:
编程语言 时间:
2015-05-30 18:17:19
阅读次数:
117
链接:http://poj.org/problem?id=3522 这个题我就想知道我已经写那么完美了,他为啥a不掉!!!!!!!!!!!!!!!!!!!!!!
都来看看 啊~~~~~~~~~~
#include
#include
#include
#include
using namespace std;
const int INF=111;
const int M=999999999;
i...
分类:
其他好文 时间:
2015-05-30 15:20:30
阅读次数:
125
代码:
#include
using namespace std;
int a[1000];
const int INF=1<0?x:-x;
}
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
sc...
分类:
其他好文 时间:
2015-05-30 14:57:11
阅读次数:
129
在WebContent\WEB-INF\下新建两个文件:applicationContext.xml和web.xml。web.xml: struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* or...
分类:
其他好文 时间:
2015-05-29 21:41:35
阅读次数:
182