2004年10月26日

Left的扩展功能(ASP)

摘要: Function LeftEx(str,lennum) Dim p_num Dim i If Len(str)<=lennum ThenLeftEx=str Elsep_num=0x=0Do While Not p_num > lennum-1 x=x+1 If asc(mid(str,x,1))<0 Thenp_num=int(p_num) + 2 Elsep_num=int(p_num) + 1 End If LeftEx=left(trim(str),x)&"…"Loop End IfEnd Function 阅读全文

posted @ 2004-10-26 09:30 goodvify 阅读(123) 评论(0) 推荐(0) 编辑

获得class文件的路径

摘要: 取得class文件所在的路径 URL url = InternalBootLoader.class.getProtectionDomain().getCodeSource().getLocation(); String path = url.getFile();如果class位于jar包中,path中得到jar文件的路径。 阅读全文

posted @ 2004-10-26 09:23 goodvify 阅读(124) 评论(0) 推荐(0) 编辑

谢军伟的点点滴滴

摘要: 1<html:base /> 引用图片和css文件的时候,action和jsp不在同一个路径下面,当导向action时,路径出现了问题。此时,应该加上<html:base />,相当于在页面中加入了<base href=“http://localhost:8080/WebApp/pages/test.jsp“>。注意:该标签没有属性,而且只有嵌套在<head>中才有效。2 取不到form中的数据的原因(用getparameter方法) 1。不是以提交方式到action的,而是直接连接、跳转 2。.form中的表单的属性设置成了disable,而不 阅读全文

posted @ 2004-10-26 09:14 goodvify 阅读(153) 评论(0) 推荐(0) 编辑

导航