/ Published in: Java
URL: http://kaedatorum.net/blog
Expand |
Embed | Plain Text
<%@ page import="java.util.*, my.utils" %> <%response.setContentType("text/javascript");%> if (!window.i18n){window.i18n = {};} <% while (bundleKeys.hasMoreElements()){ if (request.getParameter("filter") != null && key.startsWith(request.getParameter("filter"))){ out.println("window.i18n[\"" + key + "\"] = \"" + value.replaceAll("\"", "\\\\\"").replaceAll("\\n", "\\\\n") + "\";"); } } %>
Comments
Subscribe to comments
You need to login to post a comment.

This is the code of the JSP.