activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gr...@apache.org
Subject svn commit: r416641 - /incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java
Date Fri, 23 Jun 2006 08:53:51 GMT
Author: gregw
Date: Fri Jun 23 01:53:50 2006
New Revision: 416641

URL: http://svn.apache.org/viewvc?rev=416641&view=rev
Log:
fixed local resource override of js

Modified:
    incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java

Modified: incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java?rev=416641&r1=416640&r2=416641&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java
(original)
+++ incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/AjaxServlet.java
Fri Jun 23 01:53:50 2006
@@ -51,10 +51,11 @@
     protected void doJavaScript(HttpServletRequest request, HttpServletResponse response)throws
IOException, ServletException {
         
         // Look for a local resource first.
-        URL url = getServletContext().getResource(request.getServletPath()+request.getPathInfo());
+        String js = request.getServletPath()+request.getPathInfo();
+        URL url = getServletContext().getResource(js);
         if (url!=null)
         {
-            getServletContext().getRequestDispatcher(request.getServletPath()+request.getPathInfo()).forward(request,response);
+            getServletContext().getNamedDispatcher("default").forward(request,response);
             return;
         }
         



Mime
View raw message