continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r424428 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp
Date Fri, 21 Jul 2006 19:28:02 GMT
Author: carlos
Date: Fri Jul 21 12:28:02 2006
New Revision: 424428

URL: http://svn.apache.org/viewvc?rev=424428&view=rev
Log:
[CONTINUUM-783] Use jstl for constructiong the links

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp?rev=424428&r1=424427&r2=424428&view=diff
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp (original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/users.jsp Fri
Jul 21 12:28:02 2006
@@ -1,3 +1,4 @@
+<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
 <%@ taglib uri="/webwork" prefix="ww" %>
 <%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
 <html>
@@ -19,9 +20,19 @@
             <ec:column property="username" title="user.username"/>
             <ec:column property="email" title="user.email"/>
             <ec:column property="actions" title="&nbsp;">
-              <a href="${pageContext.request.contextPath}/editUser!doEdit.action?accountId=${pageScope.user.accountId}"><ww:text
name="edit"/></a>
-              &nbsp;
-              <a href="${pageContext.request.contextPath}/deleteUser!doDelete.action?accountId=${pageScope.user.accountId}&username=${pageScope.user.username}"><ww:text
name="delete"/></a>
+
+              <c:url var="editUserUrl" value="/editUser!doEdit.action">
+                <c:param name="accountId" value="${user.accountId}"/>
+              </c:url>
+
+              <a href="<c:out value='${editUserUrl}'/>"><ww:text name="edit"/></a>
+
+              <c:url var="deleteUserUrl" value="/deleteUser!doDelete.action">
+                <c:param name="accountId" value="${user.accountId}"/>
+                <c:param name="username" value="${user.username}"/>
+              </c:url>
+
+              <a href="<c:out value='${deleteUserUrl}'/>"><ww:text name="delete"/></a>
             </ec:column>
           </ec:row>
         </ec:table>



Mime
View raw message