You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/12/02 12:17:23 UTC

svn commit: r351686 - /webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp

Author: chinthaka
Date: Fri Dec  2 03:17:15 2005
New Revision: 351686

URL: http://svn.apache.org/viewcvs?rev=351686&view=rev
Log:
Fixing a non-compiling jsp

Modified:
    webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp

Modified: webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp?rev=351686&r1=351685&r2=351686&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp (original)
+++ webservices/axis2/trunk/java/modules/core/webapp/viewServiceContext.jsp Fri Dec  2 03:17:15 2005
@@ -1,10 +1,10 @@
-<%@ page import="org.apache.axis2.Constants"%>
-<%@ page import="org.apache.axis2.context.ConfigurationContext"%>
-<%@ page import="org.apache.axis2.context.ServiceContext"%>
-<%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
-<%@ page import="java.util.HashMap"%>
-<%@ page import="java.util.Iterator"%>
-<%@ page import="java.util.Map"%>
+<%@ page import="org.apache.axis2.Constants" %>
+<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
+<%@ page import="org.apache.axis2.context.ServiceContext" %>
+<%@ page import="org.apache.axis2.context.ServiceGroupContext" %>
+<%@ page import="java.util.HashMap" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.Map" %>
 <%--
   Created by IntelliJ IDEA.
   User: Indika Deepal
@@ -13,45 +13,48 @@
   To change this template use File | Settings | File Templates.
 --%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<jsp:include page="include/adminheader.jsp"></jsp:include>
+<jsp:include page="include/adminheader.jsp">
+</jsp:include>
 <h1>Runing Context hierachy</h1>
 <%
-    ConfigurationContext configContext = (ConfigurationContext)request.getSession().getAttribute(Constants.CONFIG_CONTEXT);
+    ConfigurationContext configContext = (ConfigurationContext) request.getSession().getAttribute(Constants.CONFIG_CONTEXT);
     HashMap serviceGroupContextsMap = configContext.getServiceGroupContexts();
     String type = request.getParameter("TYPE");
     String sgID = request.getParameter("PID");
     String ID = request.getParameter("ID");
-    ServiceGroupContext sgContext = (ServiceGroupContext)serviceGroupContextsMap.get(sgID);
-    ServiceContext serviceContext =null;
-    if(sgContext !=null){
+    ServiceGroupContext sgContext = (ServiceGroupContext) serviceGroupContextsMap.get(sgID);
+    ServiceContext serviceContext = null;
+    if (sgContext != null) {
         serviceContext = sgContext.getServiceContext(ID);
     }
-    if(sgID !=null && serviceContext !=null){
-        if(type != null){
-            if("VIEW".equals(type)){
-             Map perMap = serviceContext.getProperties();
-             if(perMap.size()>0){
-             %>
-             <h4>Persistance properties</h4><ul>
-             <%
-                 Iterator itr = perMap.keySet().iterator();
-                 while (itr.hasNext()) {
-                     String key = (String) itr.next();
-                     Object property =  perMap.get(key);
-              %>
-                   <li><%=key%> : <%=property.toString()%></li>
-              <%
-                 }
-                 %></ul>
-                 <%
-             } else {
-            %>
-             <h4>No persistance property found in the context</h4>
-            <%
-             }
+    if (sgID != null && serviceContext != null) {
+        if (type != null) {
+            if ("VIEW".equals(type)) {
+                Map perMap = serviceContext.getProperties();
+                if (perMap.size() > 0) {
+%>
+<h4>Persistance properties</h4><ul>
+    <%
+        Iterator itr = perMap.keySet().iterator();
+        while (itr.hasNext()) {
+            String key = (String) itr.next();
+            Object property = perMap.get(key);
+    %>
+    <li><%=key%> : <%=property.toString()%></li>
+    <%
         }
-    } else {
+    %></ul>
+<%
+} else {
+%>
+<h4>No persistance property found in the context</h4>
+<%
+        }
+    }
+} else {
 %> <h4>No Service Context found</h4><%
+        }
     }
 %>
-<jsp:include page="include/adminfooter.jsp"></jsp:include>
\ No newline at end of file
+<jsp:include page="include/adminfooter.jsp">
+</jsp:include>
\ No newline at end of file