??xml version="1.0" encoding="utf-8" standalone="yes"?>中文字幕网在线,97se亚洲国产综合自在线,国产精品爱啪在线线免费观看 http://www.aygfsteel.com/masen/category/22805.htmlzh-cn Wed, 14 Jul 2010 12:37:04 GMT Wed, 14 Jul 2010 12:37:04 GMT 60 JSTL (? http://www.aygfsteel.com/masen/articles/325665.htmlMasen Masen Fri, 09 Jul 2010 08:32:00 GMT http://www.aygfsteel.com/masen/articles/325665.html http://www.aygfsteel.com/masen/comments/325665.html http://www.aygfsteel.com/masen/articles/325665.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/325665.html http://www.aygfsteel.com/masen/services/trackbacks/325665.html
一、在Tomcat中安装JSTL
前提 OS: WIN2003QTomcat5.5Qtomcat已经配置好?nbsp;
1.准备jstl
到http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/下蝲jakarta-taglibs-standard-1.1.2.zip
解压后成为jakarta-taglibs-standard-1.1.2
2.准备web开发目?/strong>
比如我的web目录pȝ默认目录%tomcat_home%\webapps\ROOT下,工作目录为ROOT,也可以自定义工作目录Q但必须要保证工作目录下建立WEB-INF\lib,WEB-INF\classes
3.拯.jar文g
jakarta-taglibs-standard-1.1.2\lib\下的两个jar文gQstandard.jar和jstl.jar文g拯到工作目录的\WEB-INF\lib\?nbsp;
4.拯.tld文g(可?
jakarta-taglibs-standard-1.1.2\tld\下的15个tldcd文g拷到"Working folder\WEB-INF\tld"?nbsp;
5.在工作目录下的\WEB-INF\下徏立web.xml文gQ(可选)(j)
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-1_0</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-1_0-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-1_0-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-1_0</taglib-uri>
<taglib-location>/WEB-INF/tld/c-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/tld/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-1_0</taglib-uri>
<taglib-location>/WEB-INF/tld/sql-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-1_0-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/sql-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/tld/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-1_0</taglib-uri>
<taglib-location>/WEB-INF/tld/x-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-1_0-rt</taglib-uri>
<taglib-location>/WEB-INF/tld/x-1_0-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fn</taglib-uri>
<taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/permittedTaglibs</taglib-uri>
<taglib-location>/WEB-INF/tld/permittedTaglibs.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/scriptfree</taglib-uri>
<taglib-location>/WEB-INF/tld/scriptfree.tld</taglib-location>
</taglib>
</web-app>
提示Q?/strong>
In addition to declaring the tag libraries, tutorial examples access the JSTL API and implementation. In the Application Server, the JSTL TLDs and libraries are distributed in the archive <J2EE_HOME>/lib/appserv-jstl.jar. This library is automatically loaded into the classpath of all web applications running on the Application Server, so you don't need to add it to your web application.
以上摘自j2ee的tutorialQ说明步骤四、五中的TLD文g注册部分是可以省略的QW(xu)EB工程能自动的从jar包中加蝲相应的标{ֺ?nbsp;
6.建立一个名为test.jsp文g
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>试你的W一个用到JSTL 的网?lt;/title>
</head>
<body>
<c:out value="Ƣ迎试你的W一个用到JSTL 的网?/>
</br>你用的览器是Q?lt;/br>
<c:out value="${header['User-Agent']}"/>
<c:set var="a" value="David O'Davies" />
<c:out value="David O'Davies" escapeXml="true"/>
</body>
</html>
7.昄l果Q?/strong>
Ƣ迎试你的W一个用到JSTL 的网?br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />
你用的览器是Q?br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SailBrowser; .NET CLR 1.1.4322) David O'Davies
8.注意的问?/strong>
主要的一个问题还是\径的问题Q笔者配|了(jin)好几ơ都不能成功Q就是把工作目录l弄错了(jin)Q把目的目录误认ؓ(f)是工作目录,一直在目的目录下配置文gQ其实应该在工作目录下配|,当然可以把工作目录改成项目的目录Q问题(sh)可以解决了(jin)?br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />
9.常出现的问题和提C:(x)
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
出现q个问题?sh)要一U可能是工作目录的\WEB-INF\lib\下缺standard.jar和jstl.jar文gQ另外一U可能是web.xml没有q行TAG的正配|?/font>
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
应用部vq行的时候出现JSP异常, 发生在用JSTL库的时? According to TLD or attribute directive in tag file, attribute value does not accept any expressions, 可能是因Z用了(jin)JSP2.0版本, 同时又没有用JSTL core库的备用版本(RT?, 以下有两U处理方?
a. 修改web.xml.
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
改ؓ(f)2.3版本?nbsp;
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
b. 使用JSTL core RT?nbsp;
JSTL core库的有两Utaglib伪指? 其中RT库即是依赖于JSP传统的请求时属性? 而不是依赖于EL来实?UCؓ(f)EL?JSP2.0支持EL)
JSP中?lt;%@ taglib uri=http://java.sun.com/jstl/core prefix="c"%>?.3版本都可??.4׃行了(jin), N是版本不兼容?
只要?nbsp;
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
改ؓ(f)
<%@ taglib uri=http://java.sun.com/jstl/core_rt prefix="c"%>
没有问题(sh)(jin)
三、标{使用
C标准标签?br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />
Taglib-http://java.sun.com/jstl/core
基础:
1.jsp面引入C标签?
<@taglib uri=”http://java.sun.com/jstl/core” prefix=”c”> //引入标签?前缀为c
2.c标签库的标签列表
C标签库例?br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />
标签?nbsp; 用处
<c:choose>
<c:forEach>
<c:forTokens>
<c:if>
<c:import>
<c:otherwise>
<c:out> 把对象的数D出到JspWriter
<c:p
]]>meta标记的重要属?/title> http://www.aygfsteel.com/masen/articles/198388.htmlMasen Masen Mon, 05 May 2008 03:39:00 GMT http://www.aygfsteel.com/masen/articles/198388.html http://www.aygfsteel.com/masen/comments/198388.html http://www.aygfsteel.com/masen/articles/198388.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/198388.html http://www.aygfsteel.com/masen/services/trackbacks/198388.html
name 属?
1?lt;meta name="Generator" contect="">用以说明生成工具Q如Microsoft FrontPage 4.0Q等Q?
2?lt;meta name="KEYWords" contect="">向搜索引擎说明你的网늚关键词;
3?lt;meta name="DEscription" contect="">告诉搜烦(ch)引擎你的站点的主要内容;
4?lt;meta name="Author" contect="你的姓名">告诉搜烦(ch)引擎你的站点的制作的作者;
5?lt;meta name="Robots" contect= "all|none|index|noindex|follow|nofollow">
其中的属性说明如下:(x)
讑֮为allQ文件将被检索,且页面上的链接可以被查询Q?
讑֮为noneQ文件将不被(g)索,且页面上的链接不可以被查询;
讑֮为indexQ文件将被检索;
讑֮为followQ页面上的链接可以被查询Q?
讑֮为noindexQ文件将不被(g)索,但页面上的链接可以被查询Q?
讑֮为nofollowQ文件将不被(g)索,面上的链接可以被查询?
http-equiv属?
1?lt;meta http-equiv="Content-Type" contect="text/html";charset=gb_2312-80">
?<meta http-equiv="Content-Language" contect="zh-CN">用以说明主页制作所使用的文字以?qing)语aQ?
又如英文是ISO-8859-1字符集,q有BIG5、utf-8、shift-Jis、Euc、Koi8-2{字W集Q?
2?lt;meta http-equiv="Refresh" contect="n;url=http://yourlink">定时让网在指定的时间n内,跌{到页?a href="http://yourlink/">http://yourlinkQ?
3?lt;meta http-equiv="Expires" contect="Mon,12 May 2001 00:20:00 GMT">可以用于讑֮|页的到期时_(d)一旦过期则必须到服务器上重新调用。需要注意的是必M用GMT旉格式Q?
4?lt;meta http-equiv="Pragma" contect="no-cache">是用于设定禁止浏览器从本地机的缓存(sh)调阅面内容Q设定后一旦离开|页无法从Cache中再调出Q?
5?lt;meta http-equiv="set-cookie" contect="Mon,12 May 2001 00:20:00 GMT">cookie讑֮Q如果网过期,存盘的cookie被删除。需要注意的也是必须使用GMT旉格式Q?
6?lt;meta http-equiv="Pics-label" contect="">|页{评定Q在IE的internet选项中有一内容设|,可以防止览一些受限制的网站,而网站的限制U别是通过meta属性来讄的;
7?lt;meta http-equiv="windows-Target" contect="_top">强制面在当前窗口中以独立页面显C,可以防止自己的网被别h当作一个frame调用;
8?lt;meta http-equiv="Page-Enter" contect="revealTrans(duration=10,transtion= 50)">?lt;meta http-equiv="Page-Exit" contect="revealTrans(duration=20Qtranstion=6)">讑֮q入和离开面时的Ҏ(gu)效果Q这个功能即FrontPage中的“格式/|页q渡”Q不q所加的面不能够是一个frame面?
以上是常用的几个meta属性,有个Z늚朋友不妨在你的主中加上它,效果可是不一L(fng)哦:(x)Q?/p>
]]>验证日期的正则表辑ּ加入闰年的判断以?qing)思\分析(? http://www.aygfsteel.com/masen/articles/182988.htmlMasen Masen Fri, 29 Feb 2008 08:57:00 GMT http://www.aygfsteel.com/masen/articles/182988.html http://www.aygfsteel.com/masen/comments/182988.html http://www.aygfsteel.com/masen/articles/182988.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/182988.html http://www.aygfsteel.com/masen/services/trackbacks/182988.html 验证日期的正则表辑ּ加入闰年的判断以?qing)思\分析 (太厉害了(jin))
q入正题?sh)前Q我们需要澄清两个概念:(x)
一Q什么是合法的日期范_(d)对于不同的应用场景,q个问题有不同的解释。这里采U?a >MSDN中的U定 Q?br />
DateTime 值类型表CD围在公元Q基督纪元)(j)0001 q?1 ?1 日午?12:00:00 到公?(C.E.) 9999 q?12 ?31 日晚?11:59:59 之间的日期和旉?/blockquote>二,关于闰年的阐释?a >人民教育出版Cְ学数学室 的解释浅明易懂(mediawiki{都没说明ؓ(f)什?span>清楚?jin)以上两个概念,我们q入正题?br />
首先需要验证年份,昄Q年份范围ؓ(f) 0001 - 9999Q匹配YYYY的正则表辑ּ为:(x)
[0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}| [0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3} 其中 [0-9] 也可以表CZؓ(f) \dQ但 \d 不如 [0-9] 直观Q因此下面我一直采?[0-9]
用正则表辑ּ验证日期的难Ҏ(gu)二:(x)一是大月份的天数不同Q二是闰q的考虑?br />
对于W一个难点,我们首先不考虑闰年Q假?月䆾都是28天,q样Q月份和日期可以分成三种情况Q?br />
1、月份ؓ(f) 1, 3, 5, 7, 8, 10, 12Q天数范围ؓ(f) 01 - 31Q匹配MM-DD的正则表辑ּ为:(x)
(0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]) 2、月份ؓ(f) 4, 6, 9, 11Q天数范围ؓ(f) 01-30Q匹配MM-DD的正则表辑ּ为:(x)
(0[469]|11)-(0[1-9]|[12][0-9]|30) 3、月份ؓ(f) 2Q考虑q_情况Q匹配MM-DD的正则表辑ּ为:(x)
02-(0[1-9]|[1][0-9]|2[0-8]) Ҏ(gu)上面的成果,我们可以得到匚wq_日期格式为YYYY-MM-DD的正则表辑ּQ?br />
([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8])))
接着我们来解决第二个隄Q闰q的考虑。根据闰q的定义Q我们可以将闰年分ؓ(f)两类Q?br />
1、能?整除但不能被100整除的年份。寻扑两位的变化规律,可以很快得到下面的正则匹配:(x)
([0-9]{2})(0[48]|[2468][048]|[13579][26]) 2、能?00整除的年份。能?00整除的数肯定能被100整除Q因此后两位肯定?0Q我们只要保证前两位能被4整除卛_Q相应的正则表达式ؓ(f)Q?br />
(0[48]|[2468][048]|[3579][26])00 闰年?月䆾?9天,因此匚w闰年日期格式为YYYY-MM-DD的正则表辑ּ为:(x)
(([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29
最后,^q和闰年的日期验证表辑ּ合ƈQ我们得到最l的验证日期格式为YYYY-MM-DD的正则表辑ּ为:(x)
(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)
DD/MM/YYYY格式的正则验证表辑ּ为:(x)
(((0[1-9]|[12][0-9]|3[01])/((0[13578]|1[02]))|((0[1-9]|[12][0-9]|30)/(0[469]|11))|(0[1-9]|[1][0-9]|2[0-8])/(02))/([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3}))|(29/02/(([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00)))
]]>Eclipse热键 http://www.aygfsteel.com/masen/articles/134768.htmlMasen Masen Mon, 06 Aug 2007 11:32:00 GMT http://www.aygfsteel.com/masen/articles/134768.html http://www.aygfsteel.com/masen/comments/134768.html http://www.aygfsteel.com/masen/articles/134768.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/134768.html http://www.aygfsteel.com/masen/services/trackbacks/134768.html 作用?nbsp;功能 快捷?nbsp; 全局 查找q替?nbsp;Ctrl+F 文本~辑?nbsp;查找上一?nbsp;Ctrl+Shift+K 文本~辑?nbsp;查找下一?nbsp;Ctrl+K 全局 撤销 Ctrl+Z 全局 复制 Ctrl+C 全局 恢复上一个选择 Alt+Shift+↓ 全局 剪切 Ctrl+X 全局 快速修?nbsp;Ctrl1+1 全局 内容辅助 Alt+/ 全局 全部选中 Ctrl+A 全局 删除 Delete 全局 上下文信?nbsp;Alt+Q?br>Alt+Shift+? Ctrl+Shift+Space Java~辑?nbsp;昄工具提示描述 F2 Java~辑?nbsp;选择装元素 Alt+Shift+↑ Java~辑?nbsp;选择上一个元?nbsp;Alt+Shift+← Java~辑?nbsp;选择下一个元?nbsp;Alt+Shift+→ 文本~辑?nbsp;增量查找 Ctrl+J 文本~辑?nbsp;增量逆向查找 Ctrl+Shift+J 全局 _脓(chung) Ctrl+V 全局 重做 Ctrl+Y ? 查看 作用?nbsp;功能 快捷?nbsp; 全局 攑֤ Ctrl+= 全局 ~小 Ctrl+- ? H口 作用?nbsp;功能 快捷?nbsp; 全局 Ȁzȝ辑器 F12 全局 切换~辑?nbsp;Ctrl+Shift+W 全局 上一个编辑器 Ctrl+Shift+F6 全局 上一个视?nbsp;Ctrl+Shift+F7 全局 上一个透视?nbsp;Ctrl+Shift+F8 全局 下一个编辑器 Ctrl+F6 全局 下一个视?nbsp;Ctrl+F7 全局 下一个透视?nbsp;Ctrl+F8 文本~辑?nbsp;昄标尺上下文菜?nbsp;Ctrl+W 全局 昄视图菜单 Ctrl+F10 全局 昄pȝ菜单 Alt+- ? D 作用?nbsp;功能 快捷?nbsp; Java~辑?nbsp;打开l构 Ctrl+F3 全局 打开cd Ctrl+Shift+T 全局 打开cd层次l构 F4 全局 打开声明 F3 全局 打开外部javadoc Shift+F2 全局 打开资源 Ctrl+Shift+R 全局 后退历史记录 Alt+← 全局 前进历史记录 Alt+→ 全局 上一?nbsp;Ctrl+, 全局 下一?nbsp;Ctrl+. Java~辑?nbsp;昄大纲 Ctrl+O 全局 在层ơ结构中打开cd Ctrl+Shift+H 全局 转至匚w的括?nbsp;Ctrl+Shift+P 全局 转至上一个编辑位|?nbsp;Ctrl+Q Java~辑?nbsp;转至上一个成?nbsp;Ctrl+Shift+↑ Java~辑?nbsp;转至下一个成?nbsp;Ctrl+Shift+↓ 文本~辑?nbsp;转至?nbsp;Ctrl+L 搜烦(ch) 作用?nbsp;功能 快捷?nbsp; 全局 出现在文件中 Ctrl+Shift+U 全局 打开搜烦(ch)对话?nbsp;Ctrl+H 全局 工作Z的声?nbsp;Ctrl+G 全局 工作Z的引?nbsp;Ctrl+Shift+G ? 文本~辑 作用?nbsp;功能 快捷?nbsp; 文本~辑?nbsp;改写切换 Insert 文本~辑?nbsp;上滚?nbsp;Ctrl+↑ 文本~辑?nbsp;下滚?nbsp;Ctrl+↓ ? 文g 作用?nbsp;功能 快捷?nbsp; 全局 保存 Ctrl+X Ctrl+S 全局 打印 Ctrl+P 全局 关闭 Ctrl+F4 全局 全部保存 Ctrl+Shift+S 全局 全部关闭 Ctrl+Shift+F4 全局 属?nbsp;Alt+Enter 全局 新徏 Ctrl+N 目 作用?nbsp;功能 快捷?nbsp; 全局 全部构徏 Ctrl+B 源代?br>作用?nbsp;功能 快捷?nbsp; Java~辑?nbsp;格式?nbsp;Ctrl+Shift+F Java~辑?nbsp;取消注释 Ctrl+\ Java~辑?nbsp;注释 Ctrl+/ Java~辑?nbsp;d导入 Ctrl+Shift+M Java~辑?nbsp;l织导入 Ctrl+Shift+O Java~辑?nbsp;使用try/catch块来包围 未设|,太常用了(jin)Q所以在q里列出,自己讄?br>也可以用Ctrl+1自动修正?nbsp; ? q行 作用?nbsp;功能 快捷?nbsp; 全局 单步q回 F7 全局 单步跌 F6 全局 单步跛_ F5 全局 单步跛_选择 Ctrl+F5 全局 调试上次启动 F11 全局 l箋(hu) F8 全局 使用qo(h)器单步执?nbsp;Shift+F5 全局 d/去除断点 Ctrl+Shift+B 全局 昄 Ctrl+D 全局 q行上次启动 Ctrl+F11 全局 q行臌 Ctrl+R 全局 执行 Ctrl+U 重构 作用?nbsp;功能 快捷?nbsp; 全局 撤销重构 Alt+Shift+Z 全局 抽取Ҏ(gu) Alt+Shift+M 全局 抽取局部变?nbsp;Alt+Shift+L 全局 内联 Alt+Shift+I 全局 Ud Alt+Shift+V 全局 重命?nbsp;Alt+Shift+R 全局 重做 Alt+Shift+Y
]]> FreeMarker http://www.aygfsteel.com/masen/articles/123028.htmlMasen Masen Sat, 09 Jun 2007 07:26:00 GMT http://www.aygfsteel.com/masen/articles/123028.html http://www.aygfsteel.com/masen/comments/123028.html http://www.aygfsteel.com/masen/articles/123028.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/123028.html http://www.aygfsteel.com/masen/services/trackbacks/123028.html HTML表单代码 Q。它是一个Java packageQ面向JavaE序员的class library。它本nq不是针Ҏ(gu)l用L(fng)应用Q而是允许E序员将其嵌入到他们的品中?
FreeMarker被设计用来生成HTML Web面Q特别是ZMVCQModel View ControllerQ模式的应用E序。?MVC 模式作ؓ(f)动态的WEB面的想法,是ؓ(f)?jin)分隔页面设计?(HTML 设计? 和程序员?每个人做自己擅长的那一部分。设计者可以不通过E序员的改变或修改代码来改变|页的样子,因ؓ(f)应用逻辑(JavaE序)和页面设计(F(tun)reeMarker 模版Q是分开的。模板不?x)被复杂J琐的程序框架所
破坏。即使当一个项目的E序员和 HIMTL面的制作者是同一个hӞq种分隔也是很有用,因ؓ(f)q样有助于保持应用的清晰q易于维护?/div>
管FreeMarker有一些编E的能力Q但它ƈ不是一个象PHP那样的成熟的~程语言。与Java不同的是QJavaE序准备用来昄的数??span style="FONT-SIZE: 10pt; COLOR: black">SQL queries)Q?/span>Freemarker 仅是生成文本,q个文本|C用于模板的预备数据?/span>
FreeMarker 不是一?/span>Web 应用框架Q而更适合充当 Web 应用框架里的一个组件的角色Q但 FreeMarker 引擎本n?/span>HTTP ?/span>servlets q不兛_(j)Q它仅仅是生成文本。在?/span>Web 应用环境中它同样能够展示完美的用途。然而值得注意的是Q我们ؓ(f)使用 FreeMarker 提供?jin)方便的解决?gu)Q作?/span>Model2 框架Q如 Struts Q的视图lgQ你也可以在模版中?/span>JSP 标签?/span>
FreeMarker 是免费的Q有 BSD-style license 。它是由 OSI 认证的开源Y件?/span>
]]>
flv http://www.aygfsteel.com/masen/articles/121621.htmlMasen Masen Sun, 03 Jun 2007 05:08:00 GMT http://www.aygfsteel.com/masen/articles/121621.html http://www.aygfsteel.com/masen/comments/121621.html http://www.aygfsteel.com/masen/articles/121621.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/121621.html http://www.aygfsteel.com/masen/services/trackbacks/121621.html 客户端编码工?Client-Side-FLV-Encoding) 场景:拿到一?nbsp;MPG ?nbsp;AVI 文g,打算在个人电(sh)脑上转换成FLV. 1,Sorenson Squeeze: http://www.sorensontech.com/solutions/prod/mx_win.php 2,Riva FLV Encoder: http://www.rivavx.com/index.php?encoder&L=3 3,Turbine Video Encoder: http://www.blue-pacific.com/products/turbinevideo/default.htm 4,Flix Exporter: http://www.on2.com/consumer/flix-exporter/ 5,SWiSH Video: http://www.swishzone.com/index.php?product=video 6,Flash 自带的Flash Video Exporter: http://www.macromedia.com/devnet/flash/articles/flv_exporter_print.html 服务器端转换工具(Server-Side-FLV-Conversion) 场景:x(chng) MPG ?nbsp;AVI 上传C的服务器q自动{换成 FLV ? 1,FFmpeg : http://sourceforge.net/projects/ffmpeg 教程(Google Video 使用的就是这个东?): http://klaus.geekserver.net/flash/streaming.html 2,Flix Engine : http://www.on2.com/developer/flix-engine-sdk 3,Turbine Video Engine: http://www.on2.com/developer/flix-engine-sdk 4,Video to Flash Console: http://www.geovid.com/Video_to_Flash_Console 录像/实时q播(Record/Broadcast) 场景:惛_作一个语韌频B(ti)log满自恋的欲望吗Q?/strong> 1,RED5: http://www.osflash.org/red5 2,Flash Media Server: http://www.macromedia.com/go/fms 在线~码,分n视频(Online Encode & Share) 场景:想不花钱可以在U分享你的视频吗? 1,Google Video: http://video.google.com/ 2,You Tube: http://www.youtube.com/ 3,iFilm: http://www.ifilm.com/ 本地 FLV 文g播放?FLV Player) 场景:拿到?nbsp;FLV 文g不知道怎么播放?jin)?/strong> 1,martijndevisser FLV Player: http://www.martijndevisser.com/blog/article/flv-player-updated 2,FlashGuru FLV Player: http://www.flashguru.co.uk/free-tool-flash-video-player 3,FCZone FLV Player: http://fczone.com/2006/01/fms-media-player.cfm 在线 FLV 文g播放?Online FLV Player) 场景:知道一个在UFLV地址,又懒得下载和安装播放器. 1,Loadr: http://dengjie.com/loadr/ 2,Google Player Generator: http://dengjie.com/temp/google_player.swf ------又找C点关于它们的资料Q附加在q里Q和上面的大同小?2006-08-24)?br>客户端编码工?Client-Side-FLV-Encoding)1,Sorenson Squeeze 2,Riva FLV Encoder 3,Turbine Video Encoder 4,Flix Exporter 5,Flash 自带的Flash Video Exporter 服务器端转换工具(Server-Side-FLV-Conversion)1,FFmpeg | 教程一 | 教程?/font> 2,Flix Engine | 教程 | 范例 3,Turbine Video Engine 4,Video to Flash Console 录像/实时q播(Record/Broadcast)1,RED5 2,Flash Media Server 在线~码,分n视频(Online Encode & Share)1,Google Video 2,You Tube 本地 FLV 文g播放?FLV Player)1,martijndevisser FLV Player 2,FlashGuru FLV Player 3,FCZone FLV Player 在线 FLV 文g播放?Online FLV Player)1,Loadr 2,Google Player Generator ------------------W?ơ添?br>客户端编码工?Client-Side-FLV-Encoding) 场景:拿到一?nbsp;MPG ?nbsp;AVI 文g,打算在个人电(sh)脑上转换成FLV. 1,Sorenson Squeeze 2,Riva FLV Encoder 3,Turbine Video Encoder 4,Flix Exporter 5,Video2Flash 6,Flash 自带的Flash Video Exporter 更多... 服务器端转换工具(Server-Side-FLV-Conversion) 场景:x(chng) MPG ?nbsp;AVI 上传C的服务器q自动{换成 FLV ? 1,FFmpeg | 教程一 | 教程?/font> (Google Video 使用的就是这个东?) 2,Flix Engine | 教程 | 范例 3,Turbine Video Engine 4,Video to Flash Console 5,Mencoder 6,libvp62 录像/实时q播(Record/Broadcast) 场景:惛_作一个语韌频B(ti)log满自恋的欲望吗Q?br>1,RED5 2,Flash Media Server 在线~码,分n视频(Online Encode & Share) 场景:想不花钱可以在U分享你的视频吗? 1,Google Video 2,You Tube 3,Vlog 4,Veoh 本地 FLV 文g播放?FLV Player) 场景:拿到?nbsp;FLV 文g不知道怎么播放?jin)?br>1,martijndevisser FLV Player 2,FlashGuru FLV Player 3,FCZone FLV Player 在线 FLV 文g播放?Online FLV Player) 场景:知道一个在UFLV地址,又懒得下载和安装播放器. 1,Loadr 2,Google Player Generator 3,Danger Video Player -Playlist Editor
]]> fckEditor http://www.aygfsteel.com/masen/articles/121412.htmlMasen Masen Fri, 01 Jun 2007 11:16:00 GMT http://www.aygfsteel.com/masen/articles/121412.html http://www.aygfsteel.com/masen/comments/121412.html http://www.aygfsteel.com/masen/articles/121412.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/121412.html http://www.aygfsteel.com/masen/services/trackbacks/121412.html
1. 加压两个压羃文gQ把 fckeditor 攑օ root 目录下, fck 改名大写Q删?/span>sample 文g?/span>.
2.q把ECKeditor-2.3.jar ?commons-fileupload.jar拯?目\WebContent\WEB-INF\lib目录? 3.?FCKeditor.tld拯到项目\WebContent\WEB-INF? 4.在web.xml里添加如下代?
代码
5.在需要调用的面
先导入:(x)
代码
<%@ taglib uri= "http://fckeditor.net/tags-fckeditor" prefix= "FCK" %>
q在需要调用的地方输入Q?
代码
<form action="jsp2.jsp" method="post"> <FCK:editor id="content" width="100%" height="320" fontNames="?hu)?黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana" imageBrowserURL="/FckTest/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" linkBrowserURL="/FckTest/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" flashBrowserURL="/FckTest/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" imageUploadURL="/FckTest/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image" linkUploadURL="/FckTest/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File" flashUploadURL="/FckTest/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash" > </FCK:editor> <input type="submit" value="aaaaaaaaaaaaaaaaa"> </form>
--------------
最后加qo(h)?br>
上传文g名ؕ码,修改SimpleUploaderServlet此类
]]> 播放?/title> http://www.aygfsteel.com/masen/articles/120224.htmlMasen Masen Sat, 26 May 2007 14:44:00 GMT http://www.aygfsteel.com/masen/articles/120224.html http://www.aygfsteel.com/masen/comments/120224.html http://www.aygfsteel.com/masen/articles/120224.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/120224.html http://www.aygfsteel.com/masen/services/trackbacks/120224.html 转蝲,因ؓ(f)感觉打开非常之卡Q所以去掉了(jin)各播攑֙的图片。作者请谅解?
各种播放器代码及(qing)实效
=======================================================
autostart="true"中true?表示自动播放Qfalse?表示手动播放
loop="true" 中的true?表示重复播放Qfalse?表示只播放一?br> width= height= 中的数字分别表示播放器的宽度和高?=0表示隐藏播放?/p>
EnableContextMenu="0" 右?br>ShowStatusBar="1" Q带昄文g播放信息Q?br>=======================================================
隐藏(hidden=true)播放?不@? <EMBED src=音乐|址 hidden=true type=audio/x-ms-wma AUTOSTART="1"> ----------------------------------------------------------- 隐藏(hidden=true)播放?循环) <EMBED src=音乐|址 hidden=true type=audio/mpeg AUTOSTART="1" loop="-1"> --------------------------------------------------------------- 黑色[style="FILTER: xray()"]循环[loop="-1"]播放?br><EMBED style="FILTER: xray()" src=音乐|址 width=360 height=30 type=audio/mpeg volume="0" autostart="true" loop="-1"> -------------------------------------------------------------------------------- 兰色@?loop="-1")播放?br><EMBED src=音乐|址 width=300 height=45 type=audio/mpeg loop="-1" autostart="true" volume="0"> -------------------------------------------------------------------------- 掩饰自动播放?br><TABLE style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)gray(); WIDTH: 200px; HEIGHT: 83px"> <TBODY> <TR> <TD><EMBED src=音乐|址 width=200 height=40 type=audio/mpeg panel="0" autostart="true" loop="true"> </TD></TR></TBODY></TABLE> ------------------------------------- q播放时选择曲目的播攑֙ <EMBED pluginspage=http://www.microsoft.com/windows/mediaplayer/download/default.asp width=400 height=172 type=application/x-mplayer2 FileName="音乐|址" SHOWCONTROLS="1" SHOWSTATUSBAR="1" SHOWDISPLAY="1" SHOWGOTOBAR="1" AUTOSTART="true" PlayCount="1"> ---------------------------------------------------------------------------------------------- 昄曲名的黑色带彩自动播攑֙ <EMBED style="FILTER: invert()" src=音乐|址 width=320 height=45 type=audio/x-ms-wma ShowStatusBar="1" loop="true" autostart="true"> ------------------------------------------------------------------------- 昄曲名的灰白色面板 <EMBED style="FILTER: Gray()" src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED> ------------------------------------------ 灰白面板 <embed style="FILTER: Gray()" src=链接地址 width=300 height=45 loop="-1" autostart="true"></EMBED> --------------------------------------------------------------- Q带昄文g播放信息Q?/p>
<EMBED src="链接地址" width=300 height=69 type=application/x-mplayer2 loop="-1" showcontrols="1" ShowDisplay="0" ShowStatusBar="1" autostart="1"></EMBED> ----------------------------------------------- 黑色带彩色面板 <EMBED style="FILTER: invert()" src=链接地址 width=300 height=45 loop="-1" autostart="true"></EMBED> --------------------------------------------------------------------- 播放?br><TABLE borderColor=#4F3256 background=http://www.dabaoku.com/sucai/shejilei/bj/pic/0197.jpg border=1> <TBODY><TR> <TD style="FILTER: alpha(opacity=50,style=3)"> <P align=center><EMBED src=音乐|址 width=300 height=25 type=audio/mpeg loop="-1" autostart="false" volume="0"> </P></TD></TR></TBODY></TABLE>
]]> 播放代码 http://www.aygfsteel.com/masen/articles/120220.htmlMasen Masen Sat, 26 May 2007 14:25:00 GMT http://www.aygfsteel.com/masen/articles/120220.html http://www.aygfsteel.com/masen/comments/120220.html http://www.aygfsteel.com/masen/articles/120220.html#Feedback 0 http://www.aygfsteel.com/masen/comments/commentRss/120220.html http://www.aygfsteel.com/masen/services/trackbacks/120220.html 1、帖子里插入Flash代码Q?/p>
<embed src="Flash地址" width=500 height=340></embed>
其中“Flash地址”必须?#8220;http://”开头和“.swf”l尾Qwidth是指播放画面宽度Qheight指高度。如果需要居中,在上面代码前面加?lt;P align=center>?/p>
那么Q在|页中发现自己喜Ƣ的FLASH动画Q如何窃取网址呢?我将在下一文章中详述Q这里只介绍代码?/p>
2、插入mp3代码Q?/p>
<EMBED src="mp3地址" width=310 height=35 type=audio/x-pn-realaudio-plugin controls="ControlPanel,StatusBar" autostart="true" loop="true">
支持rm或mid格式Q随机播放)(j)Q?nbsp; <EMBED src="rm mp3 mid地址" width=150 height=25 type=audio/x-pn-realaudio-plugin controls="ControlPanel" autostart="true">
非自动播?
<EMBED src="rm mp3地址" width=248 height=66 type=audio/x-pn-realaudio-plugin border="0">
隐藏mp3播放?
<embed width="0" height="0" src="MP3地址" type="application/x-shockwave-flash"></embed>
3、视频常用播攑֙[MTV]
<embed src="视频地址" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel,StatusBar" height="330" width="450" autostart="true">
4、插入背景音乐的代码Q?/p>
<bgsound src="mp3 mid地址" loop="-1">
音乐地址一般都以mid或者mp3的Ş式结?后面的数字是播放ơ数?#8221;-1”是@环播放?/p>
5、放透明flash的代码:(x)
<embed style="; LEFT: 50px; TOP: -80px;" src=flash地址 width=700 height=780 wmode="transparent">
易型Q?br><EMBED src=http://www.*.com/mediadate/lxlhbcn.asf style="HEIGHT: 45px; WIDTH: 190px" type=audio/mpeg AUTOSTART="1" loop="0"> </EMBED>
标签? <embed width=240 height=140 transparentatstart=true animationatstart=false autostart=true autosize=false volume=100 displaysize=0 showdisplay=true showstatusbar=true showcontrols=true showaudiocontrols=true showtracker=true showpositioncontrols=true balance=true src="http://www.*.com/mediadate/lxlhbcn.asf "> </embed>
]]>
վ֩ģ壺
½ |
|
ƽ |
|
Զ |
տ |
ʲ |
կ |
ʩ |
|
˳ |
ɽ |
|
|
|
|
|
|
ղ |
|
|
¡ |
ٺ |
|
|
|
|
ϳ |
|
ȫ |
˳ |
ʯ |
|
|
ɽ |
ɽ |
|
ͬ |
㶫ʡ |
㽭ʡ |
|