
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
I need some help with DWR 2.XX regarding the JS includes and
creatorManager.
We have almost 30 DWR services (growing at a maddening speed).
Once every two weeks someone decides to rename or deprecate a service, and
forgets to modify the default.jsp that includes the all JS files for the services…
So… I decided to dynamically include them in a default JSP… problem
is I’ve been writing so much JavaScript lately I’ve become Java and
JSP stupid.
Here is what I got so far…
[ jsp – code ]
<%
for (java.util.Iterator it =
creatorManager.getCreatorNames().iterator(); it.hasNext();)
{
String name = (String) it.next();
String interfaceURL = request.getContextPath() +
request.getServletPath() + "/interface/" + name + ".js";
out.println("<script type='text/javascript'
src='" + interfaceURL + "'></script>");
}
%>
I based this on the DWRServlet code that builds the test
page.
Can someone help me figure out how to get the creatorManager
from the main DWR Servlet we are using Spring?
Thanks,
Phil