continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r365891 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
Date Wed, 04 Jan 2006 10:56:15 GMT
Author: evenisse
Date: Wed Jan  4 02:56:12 2006
New Revision: 365891

URL: http://svn.apache.org/viewcvs?rev=365891&view=rev
Log:
Fix build result url

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java?rev=365891&r1=365890&r2=365891&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/BuildCell.java
Wed Jan  4 02:56:12 2006
@@ -23,6 +23,13 @@
 import org.extremecomponents.table.cell.DisplayCell;
 import org.extremecomponents.table.core.BaseModel;
 
+import com.opensymphony.webwork.views.util.UrlHelper;
+
+import java.util.HashMap;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
 /**
  * Used in Summary view
  *
@@ -48,7 +55,21 @@
         {
             if ( project.getBuildNumber() > 0 )
             {
-                column.setValue( "<a href=\"TO_BE_DEFINE\">" + project.getBuildNumber()
+ "</a>" );
+                HashMap params = new HashMap();
+
+                params.put( "projectId", new Integer( project.getId() ) );
+
+                params.put( "projectName", project.getName() );
+
+                params.put( "buildId", new Integer( buildNumber ) );
+
+                HttpServletRequest request = (HttpServletRequest) model.getPageContext().getRequest();
+
+                HttpServletResponse response = (HttpServletResponse) model.getPageContext().getResponse();
+
+                String url = UrlHelper.buildUrl( "/buildResult.action", request, response,
params );
+
+                column.setValue( "<a href=\"" + url + ">" + project.getBuildNumber()
+ "</a>" );
             }
             else
             {



Mime
View raw message