JSP在EBS中的开发V10Word格式文档下载.docx

上传人:b****6 文档编号:21190305 上传时间:2023-01-28 格式:DOCX 页数:7 大小:157.92KB
下载 相关 举报
JSP在EBS中的开发V10Word格式文档下载.docx_第1页
第1页 / 共7页
JSP在EBS中的开发V10Word格式文档下载.docx_第2页
第2页 / 共7页
JSP在EBS中的开发V10Word格式文档下载.docx_第3页
第3页 / 共7页
JSP在EBS中的开发V10Word格式文档下载.docx_第4页
第4页 / 共7页
JSP在EBS中的开发V10Word格式文档下载.docx_第5页
第5页 / 共7页
点击查看更多>>
下载资源
资源描述

JSP在EBS中的开发V10Word格式文档下载.docx

《JSP在EBS中的开发V10Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《JSP在EBS中的开发V10Word格式文档下载.docx(7页珍藏版)》请在冰豆网上搜索。

JSP在EBS中的开发V10Word格式文档下载.docx

Contents

JSP注册教程

第一步:

编辑好JSP文件,并在eclipse中试运行看是否可以通过

1.编辑Test.jsp文件

<

%@pagelanguage="

java"

contentType="

text/html;

charset=GB18030"

pageEncoding="

GB18030"

%>

%@pageimport="

java.sql.*"

%>

java.sql.DriverManager"

java.sql.ResultSet"

java.sql.Statement"

java.sql.Connection"

%StringsDriver="

oracle.jdbc.driver.OracleDriver"

;

StringsConnStr="

jdbc:

oracle:

thin:

@192.168.0.9:

1529:

UAT"

Connectionconn=null;

try{

Class.forName(sDriver);

conn=DriverManager.getConnection(sConnStr,"

apps"

"

shouji"

);

conn.setAutoCommit(true);

}catch(Exceptionex){

ex.printStackTrace();

}%>

!

DOCTYPEhtmlPUBLIC"

-//W3C//DTDHTML4.01Transitional//EN"

"

http:

//www.w3.org/TR/html4/loose.dtd"

>

html>

head>

metahttp-equiv="

Content-Type"

content="

title>

ORALCE-EBS<

/title>

/head>

body>

b>

EBS开发JSP页面!

Thisisatestpage!

/b>

%Statementstmt=null;

ResultSetrs=null;

if(conn!

=null){

stmt=conn.createStatement();

stmt.execute("

insertintohek_test_avalues(1,sysdate,'

测试数据QQ11'

)"

rs=stmt.executeQuery("

selectcol1,col2,col3fromhek_test_aforupdate"

out.println("

table>

"

while(rs.next()){

tr>

td>

输出:

+rs.getString

(1));

/td>

/tr>

}

/table>

mit();

}finally{

rs.close();

stmt.close();

conn.close();

}catch(Exceptionexsql){

exsql.printStackTrace();

}%>

/body>

/html>

--注意此处不能写成UAT9,不然会报Listenerrefusedtheconnectionwiththefollowingerror:

ORA-12505,TNS:

listenerdoesnotcurrentlyknowofSIDgiveninconnectdescriptor

第二步:

上传JSP页面

(1)将Test.jsp页面上传到服务器的$OA_HTML下的ebs_java目录下:

(/data/uat/apps/apps_st/comn/webapps/oacore/html/ebs_java/)

cd$OA_HTML

mkdirebs_java如果没有ebs_java文件夹,则创建

(2)使JSP文件在EBS中能自动编译

当你在EBS中为此jsp文件注册功能,然后到相对应的职责下运行此功能时,可能会报java类如下错误:

javax.servlet.ServletException:

oracle.classloader.util.AnnotatedClassNotFoundException

这时你需要修改$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml这个配置文件中,修DEVELOPER_MODE和Main_Mode节点的值修改为如下所示:

1<

param-name>

developer_mode<

/param-name>

2<

param-value>

true<

/param-value>

4<

main_mode<

5<

recompile<

之后重新启动服务器就可以了。

代码参照下面

第三步:

上传到服务器,注册

1.将对应的jar包上传至服务器目录:

$FND_TOP/java/3rdparty/stdalone,此处jsp页面中有用到ojdbc14-10.2.0.3.0.jar(/data/uat/apps/apps_st/appl/fnd/12.0.0/java/3rdparty/stdalone/)

2.修改OC4J配置

路径:

$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/orion-application.xml

修改orion-application.xml文件,添加如下内容:

librarypath="

/data/uat/apps/apps_st/appl/fnd/12.0.0/java/3rdparty/ojdbc14-10.2.0.3.0.jar"

/>

3.注册功能

功能名称

用户功能名称

类型

HTML调用

JSP_EBS_TEST

JSPTEST

JSP可与OA共同使用

ebs_java/test.jsp

4.-重启OC4J包

cd$ADMIN_SCRIPTS_HOME

--关闭

shadapcctl.shstop

shadoacorectl.shstop

--重启

shadapcctl.shstart

shadoacorectl.shstart

返回状态为0,代表已关闭或启动成功。

预览JSP页面

1.选择职责:

XYG-DG-玻璃工程-库存主管

点击进入,JSPTEST

OpenandClosedIssuesforthisDeliverable

OpenIssues

ClosedIssues

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 判决书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1