From: <rv...@us...> - 2010-01-12 17:28:36
|
Revision: 418 http://treebase.svn.sourceforge.net/treebase/?rev=418&view=rev Author: rvos Date: 2010-01-12 17:28:29 +0000 (Tue, 12 Jan 2010) Log Message: ----------- The PhyloWSController now stores the x-access-granted QUERY_STRING parameter as a session variable so that it can be referred to by other pages in the same session. Modified Paths: -------------- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java =================================================================== --- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java 2010-01-12 17:23:04 UTC (rev 417) +++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java 2010-01-12 17:28:29 UTC (rev 418) @@ -16,6 +16,7 @@ import org.cipres.treebase.domain.study.StudyService; import org.cipres.treebase.domain.tree.PhyloTree; import org.cipres.treebase.domain.tree.PhyloTreeService; +import org.cipres.treebase.web.Constants; public class PhyloWSController implements Controller { private static String ncbiBaseUrl = "http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id="; @@ -61,6 +62,11 @@ res.setContentType("text/plain"); String url = null; String domain = "http://" + req.getServerName() + ":" + req.getServerPort(); + if ( ! TreebaseUtil.isEmpty(req.getParameter(Constants.X_ACCESS_CODE)) ) { + req.getSession().setAttribute( + Constants.X_ACCESS_CODE, + req.getParameter(Constants.X_ACCESS_CODE)); + } try { String pathInfo = req.getPathInfo(); if ( TreebaseUtil.isEmpty(pathInfo) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |