This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 32609
    
215

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it possible to include external javascrip file into ear file using NetBean 5.5.1?
 
jQuery in Action, 3rd edition