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!

putting javascript inside WEB-INF

843838May 23 2006 — edited May 23 2006
I could not call a javascript function test() from JSP. my function is defined in .js file places inside WEB-INF/javascript/script.js

and my JSP is inside WEB-INF/jsp/report.jsp. Its says object expected. I have tried all ways but could not access that function from JSP. Both javascript and jsp are inside WEB-INF folder. This is required.

Following is the code...

<html><head><title>Main Menu</title>
<script type="text/javascript" src="../javascript/tabpane.js"></script>
<link type="text/css" rel="StyleSheet" href="../css/tabpane.css" />
</head>


<body><h1>Report types</h1>

<div class="tab-pane" id="tab-pane-1">

<script language="javascript">
test();
</script>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2006
Added on May 23 2006
3 comments
325 views