Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Darek Czarkowski
You have to specify the full path, this should not work under any of the
webservers.
DarekC


On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote:
 Greetings,
 
 I'm having problems executing functions in an external javascript file.
 It's like the .js file can't be found.  I was able to do this under Tomcat
 4.0 but for some reason it's not working under Tomcat 5.0.
 
 The folder under webapps is /EdiHost and I've got another folder, /js,
 under /EdiHost.
 
 In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag.
 
 Any ideas anyone?
 
 TIA,
 
 Paul
 CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all copies of the original
 message.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
You may be able to use this instead:

src=js/EdiHost.js

IDEA will get pissed about it, but it should work (I know it does for images).

It is nice, because you can rename your context, and not break your webapp. :)

Larry


On 10/5/05, Pigott, Paul [EMAIL PROTECTED] wrote:
 Greetings,

 I'm having problems executing functions in an external javascript file.
 It's like the .js file can't be found.  I was able to do this under Tomcat
 4.0 but for some reason it's not working under Tomcat 5.0.

 The folder under webapps is /EdiHost and I've got another folder, /js,
 under /EdiHost.

 In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag.

 Any ideas anyone?

 TIA,

 Paul
 CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all copies of the original
 message.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Hassan Schroeder
Larry Meadors wrote:
 You may be able to use this instead:
 
 src=js/EdiHost.js

 It is nice, because you can rename your context, and not break your webapp. :)

Or, if you're using JSTL, use:

  src=c:url value=/js/EditHost.js/

which has the added advantage of *not* being a relative path that'll
only work if referenced from the base directory of the webapp, but
*will* work regardless of changes to the webapp name...

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
Yeah, i just hate the tag inatag / / stuff.

Messy. ;-)

Larry


On 10/5/05, Hassan Schroeder [EMAIL PROTECTED] wrote:
 Larry Meadors wrote:
  You may be able to use this instead:
 
  src=js/EdiHost.js

  It is nice, because you can rename your context, and not break your webapp. 
  :)

 Or, if you're using JSTL, use:

   src=c:url value=/js/EditHost.js/

 which has the added advantage of *not* being a relative path that'll
 only work if referenced from the base directory of the webapp, but
 *will* work regardless of changes to the webapp name...

 --
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]