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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 30050
    
149

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
How to create .properties file in NETBeans IDE 5.5.1
isErrorPage = "true" has not function
how to validate xml document with xml schema in netbean and how to create simpleType in Netbean
how to use jasperreport using netbean
Can't commit because the transaction is in aborted state