How can I use (call) .js file placed in JAR archive (in JSP page)?

How can I use (call) .js file placed in JAR archive (in JSP page)?Syntax?for example <script ...SRC=" ....Cal.jar ... cal.js"></script>?Thanks
[196 byte] By [aistov@mail.rua] at [2007-10-2 4:00:11]
# 1
Is not possible to deploy Javascript in jar instead use an filter to compress content of mime type text/*. Take a look at http://www.orionserver.com/tutorials/filters/5.html.
dekasseguia at 2007-7-15 23:22:15 > top of Java-index,Desktop,Deploying...
# 2

You can do this task with following way.

1. Create one test.js file and in js file write following content.

function openFlashWin() {

window.open( 'index.html','careers','width=768,height=500');

}

2. Now create jsp file and in jsp file write following content.

<html>

<HEAD><SCRIPT SRC="test.js"></SCRIPT></HEAD>

<P><a href="javascript:openFlashWin()">About As.</a></P>

</html>

Amit_Javaa at 2007-7-15 23:22:15 > top of Java-index,Desktop,Deploying...