It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes is it possible to include external javascrip file into ear file using NetBean 5.5.1? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "is it possible to include external javascrip file into ear file using NetBean 5.5.1?" Watch "is it possible to include external javascrip file into ear file using NetBean 5.5.1?" New topic
Author

is it possible to include external javascrip file into ear file using NetBean 5.5.1?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 245
is it possible to include external javascript file into filename.ear file using NetBean 5.5.1? if not, then where should I placed the external javascript file and how to write the src="xxx" element in javascript? (that is , how to write the path of scr="xxx" in javascript?)
I am using JBOSS 4.2.2 as server

thanks!!
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

Peter,
By putting a copy of the js in the ear, it is no longer external. If you want to reference it as external, you can use the full htttp://mysite.com/myPath/external.js URL in the src attribute. However, this JavaScript file will be limited in what it can do. In particular, it can't communicate with your server.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: is it possible to include external javascrip file into ear file using NetBean 5.5.1?
 
It's not a secret anymore!