User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 426,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,344 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 534 | Replies: 0 | Solved
Join Date: Feb 2008
Posts: 40
Reputation: vedmack is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vedmack vedmack is offline Offline
Light Poster

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

  #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 2:14 am.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 2:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC