]> source.dussan.org Git - archiva.git/commitdiff
[MRM-131] fix url rendering bugs
authorBrett Porter <brett@apache.org>
Sat, 26 Aug 2006 18:22:23 +0000 (18:22 +0000)
committerBrett Porter <brett@apache.org>
Sat, 26 Aug 2006 18:22:23 +0000 (18:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@437201 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/browseArtifact.jsp
archiva-webapp/src/main/webapp/WEB-INF/jsp/browseGroup.jsp

index da6c69eccb58476412a0baf3e6439bfb35b3ffb1..313946fb575959bb6eeedcfd01796bb09d03680b 100644 (file)
@@ -20,7 +20,7 @@
 <html>\r
 <head>\r
   <title>Browse Repository</title>\r
-  <ww:head />\r
+  <ww:head/>\r
 </head>\r
 \r
 <body>\r
   <div id="nameColumn">\r
     <h2>Groups</h2>\r
     <ul>\r
-      <ww:set name="groups" value="groups" />\r
+      <ww:set name="groups" value="groups"/>\r
       <c:forEach items="${groups}" var="groupId">\r
-        <ww:url id="url" action="browseGroup" namespace="/">\r
-          <ww:param name="groupId" value="%{'${groupId}'}" />\r
-        </ww:url>\r
+        <c:set var="url">\r
+          <ww:url action="browseGroup" namespace="/">\r
+            <ww:param name="groupId" value="%{'${groupId}'}"/>\r
+          </ww:url>\r
+        </c:set>\r
         <li><a href="${url}">${groupId}/</a></li>\r
       </c:forEach>\r
     </ul>\r
index 5270423f5a574901afdedc5aa2d865b38ee26842..889f1a2b9b752b21652ba38230bb3004b13b9ca1 100644 (file)
@@ -30,6 +30,7 @@
 <div id="contentArea">
   <div id="nameColumn">
     <p>
+      <c:set var="cumulativeGroup" value=""/>
       <c:forTokens items="${groupId}" delims="./" var="part">
         <c:choose>
           <c:when test="${empty(cumulativeGroup)}">
index fb352b5add01eca7181c4bfb339ac181d11281c4..c195fbf133456a4b8de71a62a7d41a2872b0e111 100644 (file)
@@ -20,7 +20,7 @@
 <html>
 <head>
   <title>Browse Repository</title>
-  <ww:head />
+  <ww:head/>
 </head>
 
 <body>
 <div id="contentArea">
   <div id="nameColumn">
     <p>
+      <c:set var="cumulativeGroup" value=""/>
       <c:forTokens items="${groupId}" delims="." var="part" varStatus="status">
         <c:choose>
           <c:when test="${empty(cumulativeGroup)}">
-            <c:set var="cumulativeGroup" value="${part}" />
+            <c:set var="cumulativeGroup" value="${part}"/>
           </c:when>
           <c:otherwise>
-            <c:set var="cumulativeGroup" value="${cumulativeGroup}.${part}" />
+            <c:set var="cumulativeGroup" value="${cumulativeGroup}.${part}"/>
           </c:otherwise>
         </c:choose>
         <c:choose>
             <strong>${part}</strong>
           </c:when>
           <c:otherwise>
-            <ww:url id="url" action="browseGroup" namespace="/">
-              <ww:param name="groupId" value="%{'${cumulativeGroup}'}" />
-            </ww:url>
+            <c:set var="url">
+              <ww:url action="browseGroup" namespace="/">
+                <ww:param name="groupId" value="%{'${cumulativeGroup}'}"/>
+              </ww:url>
+            </c:set>
             <a href="${url}">${part}</a> /
           </c:otherwise>
         </c:choose>
       </c:forTokens>
     </p>
 
-    <ww:set name="groups" value="groups" />
+    <ww:set name="groups" value="groups"/>
     <c:if test="${!empty(groups)}">
       <h2>Group / Artifact</h2>
       <ul>
         <c:forEach items="${groups}" var="groupId">
-          <ww:url id="url" action="browseGroup" namespace="/">
-            <ww:param name="groupId" value="%{'${groupId}'}" />
-          </ww:url>
+          <c:set var="url">
+            <ww:url action="browseGroup" namespace="/">
+              <ww:param name="groupId" value="%{'${groupId}'}"/>
+            </ww:url>
+          </c:set>
           <li><a href="${url}">${groupId}/</a></li>
         </c:forEach>
       </ul>
     </c:if>
 
-    <ww:set name="artifactIds" value="artifactIds" />
+    <ww:set name="artifactIds" value="artifactIds"/>
     <c:if test="${!empty(artifactIds)}">
       <h2>Artifacts</h2>
       <ul>
         <c:forEach items="${artifactIds}" var="artifactId">
-          <ww:url id="url" action="browseArtifact" namespace="/">
-            <ww:param name="groupId" value="%{'${groupId}'}" />
-            <ww:param name="artifactId" value="%{'${artifactId}'}" />
-          </ww:url>
+          <c:set var="url">
+            <ww:url action="browseArtifact" namespace="/">
+              <ww:param name="groupId" value="%{'${groupId}'}"/>
+              <ww:param name="artifactId" value="%{'${artifactId}'}"/>
+            </ww:url>
+          </c:set>
           <li><a href="${url}">${artifactId}/</a></li>
         </c:forEach>
       </ul>