Author: tyrell
Date: Sat Jan 12 18:38:08 2008
New Revision: 12164

Log:

Adding meta data display.

Modified:
   trunk/mashup/java/modules/www/editor.jsp

Modified: trunk/mashup/java/modules/www/editor.jsp
==============================================================================
--- trunk/mashup/java/modules/www/editor.jsp    (original)
+++ trunk/mashup/java/modules/www/editor.jsp    Sat Jan 12 18:38:08 2008
@@ -46,7 +46,8 @@
 
     String action = request.getParameter("action");
     String mashup = request.getParameter("mashup");
-
+    String mashupName = mashup;
+    String author = "";
     String currentUser = RegistryUtils.getCurrentUser(registry);
 
     //Sanity check. Immediately terminate further processing if this fails.
@@ -58,13 +59,13 @@
     } else if ((action.equalsIgnoreCase("edit")) && (mashup != null)) {
         String[] pathContents = mashup.split("/");
 
-        String author = "";
         if (pathContents.length < 4) {
             throw new Exception("Sorry. The path specified for the mashup is 
invalid.");
         } else {
             author = pathContents[2];
+            mashupName = pathContents[3];
         }
-        
+
         if (!((author.equalsIgnoreCase(currentUser) || 
RegistryUtils.isAdminRole(registry)))) {
             throw new Exception(
                     "Sorry. You are not authorized to perform this 
operation.");
@@ -161,7 +162,7 @@
 <div id="page">
 <%@ include file="header.jsp" %>
 <div id="search"></div>
-<div id="welcome">
+<div id="welcome">Editing mashup <b><%=mashupName%></b> authored by 
<i><%=RegistryUtils.getFullName(request,author)%></i>.
 </div>
 <div id="content">
 <%

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to