DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   Jsp doesnt work while source code of it that runned from Html does Work perfect. Why? (http://www.daniweb.com/forums/thread118007.html)

vedmack Apr 8th, 2008 1:48 am
Jsp doesnt work while source code of it that runned from Html does Work perfect. Why?
 
Hi i got a jsp page which uses an external .js file and also some internal javascript too...

the problem is that none of the functions that inside the external .js file are recognized inside the jsp.

But...

if i copy the source code of the jsp into an html page and will browse it , it will work perfect....


I'm using tomcat 6.13 coding on Netbeans 6.0 using Struts/Tiles framework...

Internet Explorer gives me the following error: "Object Expected"


what could be the problem?

My problem was:

I called the .js in the following way
<script language="javascript" type="text/javascript" src="/js/exter.js"></script>

while i needed this (Note the ".." in the srs path)
<script language="javascript" type="text/javascript" src="../js/buttonOverOut.js"></script>

:)


All times are GMT -4. The time now is 5:01 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC