[Carbon-dev] svn commit r31401 - trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices

azeez at wso2.com azeez at wso2.com
Tue Feb 24 00:47:58 PST 2009


Author: azeez
Date: Tue Feb 24 00:47:33 2009
New Revision: 31401
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31401

Log:
Msg handling



Modified:
   trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/finish.jsp
   trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/list_methods.jsp

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=31401&r1=31400&r2=31401&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	Tue Feb 24 00:47:33 2009
@@ -30,8 +30,7 @@
 
         String msg = "Service archive successfully created. Please refresh this page in a while to see "
                      + "the status of the created Axis2 services";
-        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.INFO, msg);
-        session.setAttribute(CarbonUIMessage.ID, uiMsg);
+        CarbonUIMessage.sendCarbonUIMessage(msg, CarbonUIMessage.INFO, request);
 %>
 <script type="text/javascript">
     location.href = "../service-mgt/index.jsp";
@@ -40,8 +39,7 @@
         return;
     } catch (Exception e) {
         response.setStatus(500);
-        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getMessage(), e);
-        session.setAttribute(CarbonUIMessage.ID, uiMsg);
+        CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e);    
 %>
 <jsp:include page="../admin/error.jsp"/>
 <%

Modified: trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/list_methods.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/list_methods.jsp?rev=31401&r1=31400&r2=31401&view=diff
==============================================================================
--- trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/list_methods.jsp	(original)
+++ trunk/carbon-components/jar-services/org.wso2.carbon.jarservices.ui/src/main/resources/web/jarservices/list_methods.jsp	Tue Feb 24 00:47:33 2009
@@ -31,16 +31,14 @@
         services = jarServiceAdminClient.getClassMethods(path, services);
     } catch (DuplicateServiceExceptionException2 e) {
         response.setStatus(500);
-        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.WARNING, e.getMessage(), e);
-        session.setAttribute(CarbonUIMessage.ID, uiMsg);
+        CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.WARNING, request);
 %>
 <jsp:include page="list_classes.jsp"/>
 <%
         return;
     } catch (Exception e) {
         response.setStatus(500);
-        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getMessage(), e);
-        session.setAttribute(CarbonUIMessage.ID, uiMsg);
+        CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e);
 %>
 <jsp:include page="../admin/error.jsp"/>
 <%



More information about the Carbon-dev mailing list