1 / 3
文档名称:

bea weblgic中介绍的一个jsp调用ejb的好例子,相当详细。(2).txt

格式:txt   页数:3
下载后只包含 1 个 TXT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

bea weblgic中介绍的一个jsp调用ejb的好例子,相当详细。(2).txt

上传人:管理资源吧 2011/9/10 文件大小:0 KB

下载得到文件列表

bea weblgic中介绍的一个jsp调用ejb的好例子,相当详细。(2).txt

文档介绍

文档介绍:×÷Õߣºdiego lynn ÈÕÆÚ£º2001-3-15 15:05:59
<%= pagetitle %>
<%@ page import=" .*, .*, , , .*, .* "%> <%! String pagetitle = "JSP example using EJBean-managed persistence"; String url = "t3://localhost:7001"; String accountId = "10020"; // Declaring a Java class public Context getInitialContext() throws Exception { Properties p = new Properties(); (, ""); (, url); return new InitialContext(p); } String getStackTraceAsString(Exception e) { // Dump the stack trace to a buffered stream, then send it's contents // to the JSPWriter. ByteArrayOutputStream ostr = new ByteArrayOutputStream(); (new PrintWriter(ostr)); return(()); } %> <% double amount = 100; double balance = 3000; AccountPK accountKey = new AccountPK(); = accountId; try { // Contact the AccountBean container (the "AccountHome") through JNDI. Context ctx = getInitialContext(); AccountHome home = (AccountHome) (""); %>
Looking up account <%= accountId %> ... <% Account ac = null; try { ac = (Account) (accountKey); } catch (Exception ee) { ("
Did not find "+ accountId); } if (ac == null) { ("
Account

最近更新

2025年哈尔滨应用职业技术学院单招职业倾向性.. 39页

2025年唐山职业技术学院单招职业适应性测试题.. 42页

2025年四川交通职业技术学院单招职业技能测试.. 40页

2025年四川文化艺术学院单招职业倾向性考试模.. 38页

2025年四川航天职业技术学院单招职业技能测试.. 41页

2025年塔里木职业技术学院单招职业倾向性测试.. 40页

2025年大连汽车职业技术学院单招职业倾向性考.. 40页

2025年天津财经大学珠江学院单招职业倾向性测.. 40页

2025年宁夏葡萄酒与防沙治沙职业技术学院单招.. 39页

2025年安徽中医药高等专科学校单招职业技能考.. 41页

2025年安徽广播影视职业技术学院单招职业适应.. 40页

2025年安徽矿业职业技术学院单招职业适应性测.. 40页

2025年安徽黄梅戏艺术职业学院单招职业技能考.. 39页

2025年山东省滨州地区单招职业适应性测试模拟.. 39页

2025年山东轻工职业学院单招职业技能测试模拟.. 40页

2025年山西林业职业技术学院单招综合素质考试.. 39页

2025年常州信息职业技术学院单招职业倾向性测.. 41页

2025年平顶山文化艺术职业学院单招职业适应性.. 40页

2025年广东省梅州市单招职业倾向性考试模拟测.. 38页

2025年广东舞蹈戏剧职业学院单招职业适应性测.. 40页

2025年广西信息职业技术学院单招职业技能测试.. 40页

2025年广西工商职业技术学院单招综合素质考试.. 40页

2025年广西理工职业技术学院单招职业适应性测.. 39页

2025年广西经济职业学院单招职业倾向性测试题.. 40页

2025年应天职业技术学院单招职业适应性测试题.. 41页

2025年国家开放大学《建筑力学》章节测试参考.. 13页

【人教版英语字帖】七年级下册单词表衡水体字.. 42页

国开《建筑力学》期末机考答案 15页

介绍医院门诊ppt 28页

农村人才流失国外研究报告 2页