lanfei的博客
lanfei · 共 50 篇文章
[置顶] JSF Richfaces
JSF RichFaces 中文用户开发指南 2009年02月05日 10点14分47秒 作 者:73cc.com 介绍 开始使用Ajax4jsf 环境需求 下载Ajax4jsf 安装 简单的 AJAX Echo 项目 JSP 页面 数据 Bean faces-config.xml Web.xml 部署 Ajax4jsf 框架的基本概念 介绍 结构概览 如何做... 发送一个AJAX 请求 决定发送什么 决定改变什么 Ajax4JSF 组件库 a4j:ajaxListener a4j:region a4j:page a4j:support a4j:commandLink a4j:comman…
2009-03-05 08:26 · seam学习 · 评论(0)
libmhash.so.2: cannot open shared object file: No such file or directory
wdcp安装过程中 没有发现什么错误!但是运行不正常(比如设置默认首页无效),或者在安装wdcp报以下错误: httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into server: libmhash.so.2: cannot open shared object file: No such file or directory 或者 httpd: Syntax error o…
2017-02-25 01:51 · linux · 评论(0)
systemctl start iptables Failed to issue method call: Unit iptables.service fail
systemctl start iptables Failed to issue method call: Unit iptables.service failed to load: No such file or directory. 解决办法 systemctl mask firewalld systemctl stop firewalld yum install iptables-services systemctl enable iptables systemctl start iptables 如果是IPV6 systemctl enable ip6tables systemctl…
2016-11-28 15:03 · 评论(0)
Linux运行service iptables save报错
执行service iptables save 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.” 使用以下命令保存: iptables-save > /etc/sysconfig/iptables iptables-save是将规则追加到一个文件
2016-11-28 14:50 · linux · 评论(0)
解决:the root element of the document is not <xsd:schema>.错误
1依次打开eclispe-->window-->preferences-->xml catalog--> location:为duboo.xsd 存放路径(见附件) key值为:http://code.alibabatech.com/schema/dubbo/dubbo.xsd
2016-11-28 11:05 · dubbo · 评论(0)
mybatis异常:Could not find result map java.util.HashMap 问题分析及解决
错误描述: Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.util.HashMap 解决办法: 将所有的Mybatis中的 resultMap 换成 resultType
2016-11-25 23:33 · Mybatis · 评论(0)
[转]spring mvc 中文乱码 post与get的方法解决
先在在web.xml中加上CharacterEncodingFilter 编码过滤器 过滤所有请求,但还是有问题,最后发现是表单的问题,在表单中method默认是get,而以上过滤器只对post有效果,如果是get,需要修改 Tomcat根式目录的 conf/server.xml文件中,找<Connector port="8080" />,在里面加<Connector port="8080" uRIEncoding="utf-8" />
2015-07-01 22:25 · java · 评论(0)
HttpClient4.4.1 post提交xml
public static String sendXMLDataByPost( String url,String xmlData) throws ClientProtocolException, IOException { Integer statusCode = -1; if (httpClient == null) { httpClient = new DefaultHttpClient(); } HttpPost post = new HttpPost(url); StringEntity entity = new StringEntity(xmlData); post.setEnt…
2015-05-08 17:26 · java · 评论(0)
web工程 手动添加maven库
打开.classpath添加 <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes> </classpathentry>
2015-04-26 11:18 · java · 评论(0)
jdbc 显示所有库
try { Class.forName("com.mysql.jdbc.Driver"); Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306","root","root"); Statement stmt=con.createStatement(); ResultSet rs=stmt.executeQuery("show databases;"); while(rs.next()) { System.out.println(rs.getString(1)); } rs.c…
2014-11-28 11:04 · java · 评论(0)
JDBC 批量插入数据
package com.web.test; import java.io.BufferedWriter; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileWriter; import java.io.InputStream; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import com.mysql.jdbc.Connection; pub…
2014-11-25 12:32 · java · 评论(0)
JSTL: empty 可以减少很多繁冗的判空
${ empty student.name }Empty是判空为空返回的真不为空返回的是假 ${( empty student.name)? '空' : '非空'} <c:if test="${! empty obj}">${key}</c:if> <c:if test="${empty obj}">所有</c:if> 当key不为空时输出key的值。当key为空时,输出“所有” 规则: 1若obj为null时,返回true 2若obj为空String时,返回true 3若obj为空Array时,返回true 4若obj为空Map时,返回true 5若obj为空Collection时,返回t…
2014-07-15 16:30 · java · 评论(0)
安装 Application Request Routing
1先关闭相关服务: net stop was /y net stop wmsvc /y 2运行下载下来的 ARRv2_setup_x86.EXE 3.安装完后启动服务 net start was net start wmsvc 如果在IIS 看不到Application Request Routing 检查was跟 wmsvc是否已经启动
2014-07-11 11:24 · IIS · 评论(0)
用IIS配置反向代理
http://blog.csdn.net/g2321514568/article/details/12406755 目标服务器:targetServer 配置反向代理的服务器:reveseProxServer 1、确定最终访问的网址:比如www.baidu.com 、www.csdn.net等等。 当然你也可以自己在targetServer部署自己的程序,在此为了示范,我在targetServer上部署了2个,用的8088端口,程序分别是: http://targetServer:8088/Auditsys/Default.htm http://targetServer:8088/GCust…