Jsp doesnt work while source code of it that runned from Html does Work perfect. Why?

Thread Solved

Join Date: Feb 2008
Posts: 51
Reputation: vedmack is an unknown quantity at this point 
Solved Threads: 0
vedmack vedmack is offline Offline
Junior Poster in Training

Jsp doesnt work while source code of it that runned from Html does Work perfect. Why?

 
0
  #1
Apr 8th, 2008
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>

Last edited by vedmack; Apr 8th, 2008 at 3:14 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC