Author: saminda
Date: Mon Dec 10 01:34:43 2007
New Revision: 10802

Log:

Fixes related to Mashup


Modified:
   
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/ajax/DynamicCodeGeneratorService.java

Modified: 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/ajax/DynamicCodeGeneratorService.java
==============================================================================
--- 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/ajax/DynamicCodeGeneratorService.java
  (original)
+++ 
trunk/commons/codegen/src/main/java/org/wso2/codegen/service/ajax/DynamicCodeGeneratorService.java
  Mon Dec 10 01:34:43 2007
@@ -196,17 +196,8 @@
                 (files1[0].getAbsoluteFile() != null)) {
                 fileResourcesMap.put(uuidTryit, 
files1[0].getAbsoluteFile().getAbsolutePath());
             }
-
-            String contextRoot = "";
-            if 
(!MessageContext.getCurrentMessageContext().getConfigurationContext()
-                    .getContextRoot().equals("/")) {
-                contextRoot = 
MessageContext.getCurrentMessageContext().getConfigurationContext()
-                        .getContextRoot();
-            }
-
             log.debug("Try it page has been generated for the service: " + 
serviceName);
-
-            return contextRoot + WSO2Constants.ContextPaths.DOWNLOAD_PATH + 
"?id=" + uuidTryit;
+            return "filedownload" + "?id=" + uuidTryit;
         } catch (Exception e) {
             log.error(e);
             throw AxisFault.makeFault(e);

_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev

Reply via email to