- 浏览: 81227 次
- 性别:
- 来自: 天津
最新评论
-
wufei1310:
hantaozu 写道 renderer.setDocumen ...
网页生成PDF -
钢镚cuicheng:
生出的PDF不能打开
网页生成PDF -
钢镚cuicheng:
希望你能看到
网页生成PDF -
钢镚cuicheng:
我想问一下,大哥按照你的代码,生成的pdf,不能读呀报错错误: ...
网页生成PDF -
feiyan35488:
卡菲牛奶 写道Linux下面中文支持吗? 当然支持了,
网页生成PDF
文章列表
用FlvPlayer播放.flv文件的时候发现不能播放中文文件名的.flv视频...
是播放器的问题...最初想用URLEncoder.encode()的,可是这个又不是url传中文参数的问题...于是想到把中文名转成可识别的字符,想到字符集不是很理想...
可否用拼音呢? 找了一下,找到这个中文转拼音的很实用的方法...
ChineseSpelling.java
package com.enorth.lichen.transcode; public class ChineseSpelling { private static int[] pyva ...
- 2009-06-17 16:25
- 浏览 1309
- 评论(1)
JBOSS-WEB据说很有前途,有tomcat的优势,又能近似apache的稳定.
下载下来有2个版本.一个是安装版一个是解压缩版--近乎tomcat.是青出于蓝而胜于蓝
修改端口号
修改server.xml文件
<!-- <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />-- ...
- 2009-06-17 16:24
- 浏览 693
- 评论(0)
Java web开发调用外部ffmpeg或mencoder转码...
遇到的问题是ffmpeg或mencoder进程阻塞, 需要停掉tomcat--javaw.exe进程之后才能执行ffmpeg.exe或mencoder.exe
问题的原因: getErrorStream 和 getInputStream 缓冲区没有清空
解决的方法: 同时清空getErrorStream 和 getInputStream 的缓冲区
代码如下:
ProcessBuilder builder = new ProcessBuilder(); builder.comman ...
flv格式转换--第一步
不定期更新...
首先要安装MediaCoder
安装目录假设为D:\flv\MediaCoder
在D:\flv\MediaCoder\codecs目录下有一些要用到的,如ffmpeg.exe , mencoder.exe还有一些dll
ConvertVideo.java
package com.lichen.test; import java.io.File; import java.util.List; public class ConvertVideo { private final static String PAT ...
URL传递中文参数,默认格式为ISO-8859-1,一般在接收该参数时,如果不进行编码,得到的会是乱码。 如果在url中直接使用中文,如:
http://website/login.jsp?name=好&pwd=000
在接收参数name时,只需要进行一下编码方式的转换就OK了,如:
<%@ page language="java" pageEncoding="GB2312"%> <% String name= request.getParameter("name ...
Java多线程使用线程池效果更好, 目的如连接池.
第一个实例.
ThreadPool.java
package com.lichen.test; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class ThreadPool { private static int produceTaskSleepTime = 2; private st ...
文件上传部分:
上传页面 upload.jsp
<s:form action ="upload" method ="POST" enctype ="multipart/form-data" > <s:file name ="file" label ="上传文件"/> ...
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-05-13 15:46
- 浏览 2008
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-04-08 17:27
- 浏览 1365
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-04-07 14:10
- 浏览 845
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-04-02 14:06
- 浏览 785
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-03-31 13:59
- 浏览 1137
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-03-27 17:04
- 浏览 958
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-03-16 15:33
- 浏览 743
- 评论(0)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','s ...
- 2009-03-16 12:30
- 浏览 980
- 评论(0)