arrays.jsp:
//... var x = <c:out value="${x}"/> <c:if test="${empty doExternal}"> processExternalArrays(); </c:if> //...
I want to minimize / obfuscate JavaScript contained in a large JSP file in which numerous JSP / JSTL variables are mixed with JavaScript code, for example, in the snippet above.
The code uses variables populated using server-side logic and then passed to the client code, as described above.
I am already trimming my JS files with a YUI compressor, but I don't know what to do with the JavaScript code in my JSPs.
Is it possible to minimize / obfuscate this code, given that it is dynamically created?
java javascript jsp jstl obfuscation
Oscar reynes
source share