LOGO OA教程 ERP教程 模切知识交流 PMS教程 CRM教程 开发文档 其他文档  
 
网站管理员

在ASP中使用Java类(Using Java Classes from ASP)

admin
2010年7月7日 23:26 本文热度 5372

using java classes from asp


com components aren't the only way to use compiled code in your asp applications. if you're familiar with
java, but have no way of wrapping your classes as com objects (for example, you use jdk or j++ standard),
you can still use java from asp. and here's how


first, make sure you have access to the c:javatrustlib directory on your production server.
most shared hosting plans wouldn't allow this kind of access, but if you're developing an intranet, or a
site for dedicated server deployment, you'll be just dandy.


next step, compile your java class as you would compile an applet or console class, using your favourite
compiler, any one will do, and remember to jot down the names of the public methods and properties your
class makes available.


drop your class file into the trustlib folder, and make sure you have a recent java virtual machine
installed on the server. the latest ms version is here.


now to call the class from your asp pages, use the following syntax


set myjavaobject = getobject("java:classname")
so if you compiled your class as 'foobar.class', you use


set myjavaobject = getobject("java:foobar")
generally, the performance of a java class used like this is slightly slower than a com dll, but faster
than just scripting, and you also have easy access to the inbuilt java class libraries, some of which
you'll find very useful in your asp apps.


finally, call methods of the object as you would call methods of any other com component


happy coding


该文章在 2010/7/7 23:26:36 编辑过
关键字查询
相关文章
正在查询...
点晴ERP是一款针对中小制造业的专业生产管理软件系统,系统成熟度和易用性得到了国内大量中小企业的青睐。
点晴PMS码头管理系统主要针对港口码头集装箱与散货日常运作、调度、堆场、车队、财务费用、相关报表等业务管理,结合码头的业务特点,围绕调度、堆场作业而开发的。集技术的先进性、管理的有效性于一体,是物流码头及其他港口类企业的高效ERP管理信息系统。
点晴WMS仓储管理系统提供了货物产品管理,销售管理,采购管理,仓储管理,仓库管理,保质期管理,货位管理,库位管理,生产管理,WMS管理系统,标签打印,条形码,二维码管理,批号管理软件。
点晴免费OA是一款软件和通用服务都免费,不限功能、不限时间、不限用户的免费OA协同办公管理系统。
Copyright 2010-2024 ClickSun All Rights Reserved