![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
fini87
这个作者很懒,什么都没留下…
展开
-
Struts2整合FCKeditor2.6
首先下载FCKeditor2.6和FCKeditor.Java,解压后分别为fckeditor2.6和FCKeditor-2.3。 在项目中新建文件夹FCKeditor,然后将解压后的fckeditor2.6下的editor文件夹中fckconfig.js、fckeditor.js、fckstyles.xml、fcktemplates.xml拷贝到FCKeditor目录下,然后将解压后的FCKed...2010-04-13 15:51:09 · 68 阅读 · 0 评论 -
Url传递中文接收时乱码问题
修改Tomcat配置文件Tomcat 6.0/conf/server.xml <Connector port="8080" protocol="HTTP/1.1" maxThreads="150" connectionTimeout="20000" redirectPort="8443" URIEncoding="U2010-04-20 10:40:25 · 109 阅读 · 0 评论 -
Struts2整合JSON
首先在http://code.google.com/p/jsonplugin/downloads/list下载jsonplugin-0.34.jar 之后将jsonplugin-0.34.jar放入WEB-INF/lib中 之后使用prototype.js Action代码 package com.platform.Action.SDCategory; import...2010-04-21 10:17:01 · 67 阅读 · 0 评论 -
JavaScript处理JSON
var jsonString = request.responseText; 取json格式字符串 var jsonObject = eval("("+jsonString +")"); 生成Json对象 jsonObject.成员名.length; 成员中数组个数 jsonData.成员名[i].对象名 取单个值...2010-04-22 14:47:10 · 70 阅读 · 0 评论 -
getHibernateTemplate().find()各种方法
一、find(String queryString); 示例:this.getHibernateTemplate().find("from bean.User"); 返回所有User对象 二、find(String queryString , Object value); 示例:this.getHibernateTemplate().find("from bean.U...原创 2010-05-12 14:58:38 · 131 阅读 · 0 评论 -
文件上传
文件上传使用<s:file>标签,表单的method为post,enctype为multipart/form-data <s:form action="SupplyAdd" method="post" theme="simple" enctype="multipart/form-data"> <s:file name="product原创 2010-06-03 15:31:10 · 117 阅读 · 0 评论 -
java转码工具native2ascii.exe的使用方法
在配置资源文件的时候我们经常会遇到转码问题,其实jdk中本身就已经包含了转码工具 native2ascii.exe。下面就其使用方法做一个简单说明:在dos下面执行{native2ascii 源文件 目标文件}就可以完成转码。。。。反编码也很方便native2ascii -reverse 原文件 目标文件...原创 2010-06-08 14:08:26 · 85 阅读 · 0 评论 -
页面显示<s:textarea/>内容中空格换行
textarea内容中的空格和换行无法存储到数据库中,所以在显示页面textarea内容时不换行。解决方法是在存入数据库之前,将“ ”“\n\r”替换成&nbsp; <br> stringObj.replace(" ", "&nbsp;").replace("\r\n", "<br>") ...原创 2010-07-02 10:01:56 · 141 阅读 · 0 评论