Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 技术文章库  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 最近工作的一些小tips集合
tier3





发贴: 228
积分: 120
于 2005-08-22 10:01 user profilesend a private message to usersend email to tier3search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1.在无网络环境时,要把config-tiles.xml里的dtd文件位置改在本地的文件路径,否则出来IO Error
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"D:/eclipse/workspace/HMS/WEB-INF/lib/tiles-config.dtd">

18:45:04,046 ERROR [TilesPlugin] Can't create Tiles definition factory for modul
e ''.
18:45:04,046 ERROR [[action]] Allocate exception for servlet action
org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file
'/WEB-INF/config-tiles.xml'. \WEB-INF\lib\tiles-config.dtd


2. 如何从inputstream得到file:
classLoader.getResource() -->inputstream.toURI() --> new File(uri)

URI uri = this.getClass().getClassLoader().getResource("WEB-INF/data/hotelx/rooms").toURI();
File directory = new File(uri);

3. within jsp <%%>
we can not use Vector<***>
it seems jasper can't parse jdk 1.5 syntax??

4. in elicpse plugin development, after you create the action and plugin class in
eclipse wizard, never try to change their names, otherwise, in runtime application,
the classloader will never find the action class.
5. 用<%=request.getContextPath()%>可以取得当前war的名字,
有一个问题。
用"href="<%=request.getContextPath()%>/jsp" 出来的结果是正确的"http://bruce-liu:8080/mdf-gen/jsp",
但是如何用"href="/<%=request.getContextPath()%>/jsp",出来的结果就是""http://mdf-gen/jsp",
所以不能在前面加上"/".

6 exception using junitreport (java.lang.ClassNotFoundException: redirect)
To fix the problem you have the choice to:
- Upgrade your Xalan version to the latest one (or anything 2.4.1+) via the
endorsment mechanism
- Upgrade your JDK to 1.4.2-01+
- Use the ${ant.home}/etc/junit-frames-xalan1.xsl

Any option should fix the problem, this is due to an unfortunate
incompatibility between Xalan versions and the need to support XSLTC in JDK 1.5

http://issues.apache.org/bugzilla/show_bug.cgi?id=30524

7
矢量标识语言(VML),精度图像标识语言(PGML)都是作为W3C的矢量图像初始标准在1998年提出的.
VML和PGML在很多地方非常的类似,但VML比较适合一些普通矢量图像,而PGML可以做出更加丰富多彩,
适合专业设计和公众出版的图像.

  为了进一步促进图像标准的发展,W3C成立了SVG工作组.SVG工作组将VML和PGML的优势结合在了一起,
重新推出了新的标准矢量格式,这就是SVG.
哪些是SVG能做到而GIF,JPEG做不到的?

  SVG较位图图像有很多独特的优势:

  1.任意放缩: 用户可以自由的放缩图像而不会破坏图像的清晰度.
  2.文本独立: SVG图像中的文字独立于图像,可以编辑和查询.同时,也不会再有字体的限制,用户系统即使没有安装某一字体,
同样可以看到这些字体.
  3.较小文件尺寸: 一般而言,SVG图像要比其他网络图像格式如GIF,JPEG更小,下载更迅速.
  4.超强显示效果: SVG图像的清晰度适合任何屏幕分辨率或打印分辨率(dpi),无论是300dpi,600dpi甚至更高,
都不会产生位图图像的马赛克现象.
  5.超强色彩控制: SVG图像具有一个1600万色彩的调色板,支持ICC标准,RGB,线性填充和遮罩.
  6.超强交互性: 由于SVG是基于XML的,因而能制作出空前强大的动态交互.SVG图像能对用户动作做出不同响应,
例如高亮,声效,特效,动画等.

8
BPEL(Business Process Execution Language)用于异构环境的,基于Web的复杂环境业务流系统。

http://en.wikipedia.org/wiki/BPEL
http://searchwebservices.techtarget.com/sDefinition/0,,sid26_gci845110,00.html




话题树型展开
人气 标题 作者 字数 发贴时间
12326 最近工作的一些小tips集合 tier3 2718 2005-08-22 10:01
9761 Re:最近工作的一些小tips集合 tier3 30 2005-08-23 10:39
10350 Re:最近工作的一些小tips集合 tier3 9442 2005-08-23 10:43
10757 Re:最近工作的一些小tips集合 littledeer1974 14 2005-08-23 14:19

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923