File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Precompile JSP in Weblogic 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Precompile JSP in Weblogic 5.1" Watch "Precompile JSP in Weblogic 5.1" New topic

Precompile JSP in Weblogic 5.1

M Suguna
Ranch Hand

Joined: Jun 07, 2002
Posts: 37
Hi all,
I tried to precompile the JSP in WebLogic 5.1.
But am facing one problem.
I have some javascript files included in the jsp like
<%@ include file="myScript.js" %>
When I pre-compile the JSP files, it is not able locate the myScript.js file which is present in the public_html directory.
Can anybody help me on this? Is there any property or path I need to set to make the 'myScript.js' file visible in my JSP?
Note: This problem occurs only when I try to pre-compile the JSPs. Else everything is working fine.
Thanx in Advance.
Upendra Kota

Joined: Jun 02, 2002
Posts: 3
Hi !
make sure ur jsp file which includes java script file and java script file(.js file) in the same directory under public_html folder. Then if u call the jsp file internally it would call java script file and it would publish the content of java script file along with the jsp file content which is calling javascript file. i worked on it.its working fine. If u are still facing problem with it contact me at
M Suguna
Ranch Hand

Joined: Jun 07, 2002
Posts: 37
Hi Upendra,
Thanx for the suggestion.
Yes. All the .jsp files and the .js files are in the same folder (public_html). There are no sub-folders.
When I tried the same thing in UNIX, it is working fine. The problem happens only when I try pre-compilation in Windows machine. Does it gives you any clue?
I agree. Here's the link:
subject: Precompile JSP in Weblogic 5.1
It's not a secret anymore!