[Carbon-dev] svn commit r31342 - in trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main: java/org/wso2/carbon/jarservices/ui/fileupload resources/web/jarservices
azeez at wso2.com
azeez at wso2.com
Mon Feb 23 18:48:11 PST 2009
Author: azeez
Date: Mon Feb 23 18:48:11 2009
New Revision: 31342
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31342
Log:
properly getting the serviceGroupName
Modified:
trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/java/org/wso2/carbon/jarservices/ui/fileupload/JarFileUploadExecutor.java
trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp
Modified: trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/java/org/wso2/carbon/jarservices/ui/fileupload/JarFileUploadExecutor.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/java/org/wso2/carbon/jarservices/ui/fileupload/JarFileUploadExecutor.java?rev=31342&r1=31341&r2=31342&view=diff
==============================================================================
--- trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/java/org/wso2/carbon/jarservices/ui/fileupload/JarFileUploadExecutor.java (original)
+++ trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/java/org/wso2/carbon/jarservices/ui/fileupload/JarFileUploadExecutor.java Mon Feb 23 18:48:11 2009
@@ -20,7 +20,8 @@
public boolean execute(HttpServletRequest request, HttpServletResponse response)
throws CarbonException, IOException {
- String serviceGroupName = request.getParameter("serviceGroupName");
+ String serviceGroupName = formFieldsMap.get("serviceGroupName");
+
request.getSession().setAttribute("serviceGroupName", serviceGroupName);
String webContext = (String) request.getAttribute(CarbonConstants.WEB_CONTEXT);
String serverURL = (String) request.getAttribute(CarbonConstants.SERVER_URL);
Modified: trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp?rev=31342&r1=31341&r2=31342&view=diff
==============================================================================
--- trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp (original)
+++ trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp Mon Feb 23 18:48:11 2009
@@ -24,6 +24,7 @@
try {
JarServiceAdminClient jarServiceAdminClient = new JarServiceAdminClient(configContext, backendServerURL, cookie);
String path = ((UploadArtifactsResponse) session.getAttribute("UploadArtifactsResponse")).getResourcesDirPath();
+ System.out.println("###### (String) session.getAttribute(\"serviceGroupName\")=" + (String) session.getAttribute("serviceGroupName"));
jarServiceAdminClient.createAndDeployService(path,
(String) session.getAttribute("serviceGroupName"),
services);
More information about the Carbon-dev
mailing list