Two Laptop Bag*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 240
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29237
    
139

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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?
 
Similar Threads
isErrorPage = "true" has not function
how to use jasperreport using netbean
How to create .properties file in NETBeans IDE 5.5.1
Can't commit because the transaction is in aborted state
how to validate xml document with xml schema in netbean and how to create simpleType in Netbean