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

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

admin
2010年7月7日 23:26 本文热度 5514
[p]using java classes from asp[/p]
[p]com components aren't the only way to use compiled code in your asp applications. if you're familiar with [br]java, but have no way of wrapping your classes as com objects (for example, you use jdk or j++ standard), [br]you can still use java from asp. and here's how[/p]
[p]first, make sure you have access to the c:javatrustlib directory on your production server. [br]most shared hosting plans wouldn't allow this kind of access, but if you're developing an intranet, or a [br]site for dedicated server deployment, you'll be just dandy.[/p]
[p]next step, compile your java class as you would compile an applet or console class, using your favourite [br]compiler, any one will do, and remember to jot down the names of the public methods and properties your [br]class makes available.[/p]
[p]drop your class file into the trustlib folder, and make sure you have a recent java virtual machine [br]installed on the server. the latest ms version is here.[/p]
[p]now to call the class from your asp pages, use the following syntax[/p]
[p]set myjavaobject = getobject("java:classname")[br]so if you compiled your class as 'foobar.class', you use[/p]
[p]set myjavaobject = getobject("java:foobar")[br]generally, the performance of a java class used like this is slightly slower than a com dll, but faster [br]than just scripting, and you also have easy access to the inbuilt java class libraries, some of which [br]you'll find very useful in your asp apps.[/p]
[p]finally, call methods of the object as you would call methods of any other com component[/p]
[p]happy coding[/p]

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