I am trying to move a javascript present inside a JSP to a separate file. But the javascript doesnt work after moving because it contains some scriptlets . Is there a way which makes the javascript to work ?
Scriptlets will, of course, only be processed if they are in a JSP. Moving the JavaScript template text containing scriptlets to a .js file prevents the scriptlets from ever being processed.