Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Include Javascript in XSL

843834Nov 4 2003 — edited Nov 6 2003
Hello,

I have a javascript file that I want to include into my xsl file (the Javascript file has also some JSP code). The output of the xsl file should be JSP.

I tried tons of sollutions and none of them worked.

here some code of my .js file:

function validTransaction(thisForm)
{

<%@ include file="/javascript/elb/jsReady.js" %>

if(isBusy==true) {
alert("<%= KdMg.ohlKd("LIT-KD","020338",taalKd) %>");
return false;
}

var accountType, accnr1, accnr2;
alert('test1');
// Debet account can't be the same as credit account
accnr1=thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.options[thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.selectedIndex].value;
accnr2=thisForm.<%=TestOvsTask.REQ_CR_REK_NR_EN_DEV%>.options[thisForm.<%=TestOvsTask.REQ_CR_REK_NR_EN_DEV%>.selectedIndex].value;
if(accnr1 == accnr2) {
alert("<%=TextManager.ohlText("Dyl0701", "rekBegRekOpdGl", taalKd).getText()%>");
thisForm.<%=TestOvsTask.REQ_DB_REK_NR_EN_DEV%>.focus();
return false;
}
}

Any idea how to include such a file into my xsl file???

greatly appreciated...

Michael

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2003
Added on Nov 4 2003
4 comments
336 views