aspose file tools*
The moose likes JSP and the fly likes how to avoid enclosing jsp's javascript in the included file(s) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to avoid enclosing jsp Watch "how to avoid enclosing jsp New topic
Author

how to avoid enclosing jsp's javascript in the included file(s)

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
is it possible?
my logic says no, but maybe..
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

Yes, you can include javascript functions in an external file. The file will only be downloaded to the user's machine once (unless it changes), so the same functions don't need to be downloaded repeatedly for multiple pages.
Example from this page:


[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: how to avoid enclosing jsp's javascript in the included file(s)