- 博客(0)
- 资源 (8)
- 收藏
- 关注
EOVA框架整合WEBSERVICE ,eclipse maven环境 简单实用。内含说明.
EOVA框架整合WEBSERVICE ,eclipse maven环境 简单实用。内含说明.
2022-03-02
ibatis+sql2005+etmv+exjs示例+源码
给初学ibatis的同学,没有采用strus,sping.配置简单明了适合初学了解,数据库在DB文件下,需要恢复到本机,实现简单的权限管理,数据增加\删除\修改,采用exjs制作界面美观简洁.有不清楚可以发邮件 [email protected] ,欢迎交流
2011-05-12
java条码生存WEB版
在web.xml中配置一个生成条形码的servlet,如下:
...
<servlet>
<servlet-name>CreateBarCode</servlet-name>
<servlet-class>com.soft4j.barcode.BarCodeServlet</servlet-class>
</servlet>
...
<servlet-mapping>
<servlet-name>CreateBarCode</servlet-name>
<url-pattern>/CreateBarCode</url-pattern>
</servlet-mapping>
...
这样就可以使用CreateBarCode这个servlet来生成条形码了。
备注:
(1)com.soft4j.barcode.BarCodeServlet,这里填写自己项目中的实际包路径
(2)关于CreateBarCode这个名字可以自行设定。
3.前台引用例子(BarcodeExample.jsp):
<%@ page contentType="text/html;charset=UTF-8"%><%
String code = "135792468";//条形码内容
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript">
<!--
NS4 = (document.layers) ? 1 : 0;
visble_property_prefix = (NS4) ? "document.layers." : "";
visble_property_suffix = (NS4) ? ".visibility" : ".style.display";
visble_property_true = (NS4) ? "show" : "block";
visble_property_false = (NS4) ? "hide" : "none";
visble_property_printview = visble_property_prefix + "viewpanel" + visble_property_suffix;
function nowprint() {
window.print();
}
function window.onbeforeprint() {
eval(visble_property_printview + " = \"" + visble_property_false + "\"");
}
function window.onafterprint() {
eval(visble_property_printview + " = \"" + visble_property_true + "\"");
}
//-->
2009-04-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人