@@ -0,0 +1,1651 @@
+package edu.columbia.gemma.web.controller.genome.gene;%0A%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.springframework.web.servlet.ModelAndView;%0Aimport org.springframework.web.servlet.mvc.BaseCommandController;%0A%0A%0Aimport edu.columbia.gemma.genome.gene.CandidateGeneList;%0Aimport edu.columbia.gemma.genome.gene.CandidateGeneListService;%0Aimport edu.columbia.gemma.genome.gene.GeneService;%0Aimport edu.columbia.gemma.genome.Gene;%0A%0A/**%0A * %3Chr%3E%0A * %3Cp%3E%0A * Copyright (c) 2004 - 2005 Columbia University%0A * %0A * @author daq2101%0A * @version $Id$%0A * @spring.bean id=%22geneController%22 name=%22/geneDetail.htm%22%0A * @spring.property name=%22geneService%22 ref=%22geneService%22%0A */%0Apublic class GeneController extends BaseCommandController %7B%0A%09private GeneService geneService = null;%0A%0A%09/**%0A%09 * @return Returns the geneService.%0A%09 */%0A%09public GeneService getGeneService() %7B%0A%09%09return geneService;%0A%09%7D%0A%0A%09/**%0A%09 * @param geneService%0A%09 *            The geneService to set.%0A%09 */%0A%09public void setGeneService(GeneService geneService) %7B%0A%09%09this.geneService = geneService;%0A%09%7D%0A%09public ModelAndView handleRequestInternal(HttpServletRequest request,%0A%09%09%09HttpServletResponse response) throws Exception %7B%0A%0A%09%09Map geneModel = new HashMap();%0A%09%09long geneID=0;%0A%09%09if (request.getParameter(%22geneID%22) != null)%0A%09%09%09geneID = new Long(request.getParameter(%22geneID%22)).longValue();%0A%09%09if( geneID==0)%0A%09%09%09throw new Exception(%22Error: Must pass geneID parameter%22);%0A%09%09%0A%09%09Gene g = this.getGeneService().findByID(geneID);%0A%09%09geneModel.put(%22gene%22, g);%0A%09%09return new ModelAndView(%22geneDetail%22, %22model%22, geneModel);%0A%09%7D%0A%0A%7D

Version one, just displays genes by ID