This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 234
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: 26193
    
  66

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is it possible to include external javascrip file into ear file using NetBean 5.5.1?
 
Similar Threads
how to validate xml document with xml schema in netbean and how to create simpleType in Netbean
how to use jasperreport using netbean
isErrorPage = "true" has not function
Can't commit because the transaction is in aborted state
How to create .properties file in NETBeans IDE 5.5.1