Skip to Main Content

Java Development Tools

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!

Trying to include a javascript file within a jsp

393574Jun 2 2003 — edited Jun 16 2003
Hi,

I'm trying to develop with JDeveloper 9.0.0.1035, Windows2000.

I'm trying to include a javascript file with common js functions in a jsp.
I'm using the html tag:
<SCRIPT LANGUAGE="JavaScript" SRC="pathToMyJsFile"></SCRIPT>

I don't know why it doesn't work I mean, I dont know if it is because:


1.- When compiling, executing, JDeveloper generates into classes directory a .jsp directory
with *.class files and time execution jsp files, am I right ?

I don't know if i should see a _js directory with the files I would like to use with my
common fucntions. I have add the js file to my project (many times) and just once I could see
the js directory but I should erase the .jsp directory and I cannot see the js directory anymore.

Should I change, modify or whatever the settings of my JDeveloper project.
Is it not working becaue of that ?


2.- In other hand I cannot see the css directory and *.css files.
I'm using them so and know if what I've explained before has any sense.


3.- I have read that I should use "/aplicationNamePath/js/myJsFile" but it doesn't work either.
I don't know if I typed right, beacuse what is AppName ?, my project Name (.jpr),
directory name where source code is, the html root directory ?


What I get is:

..../mywork/WorkSpaceDir/ProjectDir/classes/
..../mywork/WorkSpaceDir/ProjectDir/deploy/
..../mywork/WorkSpaceDir/ProjectDir/src/
..../mywork/WorkSpaceDir/ProjectDir/appName/
..../mywork/WorkSpaceDir/ProjectDir/appName/jsDir/
..../mywork/WorkSpaceDir/ProjectDir/appName/cssDir/
..../mywork/WorkSpaceDir/ProjectDir/appName/jspFileThatTriesToIncludeJsFile.jsp



Should I do something I did wrong and try again ?

Has anybody any other idea ?


THANX IN ADVANCE
Jose Ig
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2003
Added on Jun 2 2003
1 comment
435 views