%--
* Copyright by Intland Software
*
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Intland Software. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Intland.
*
* $Revision$ $Date$
--%>
<%@ taglib uri="jstl-c" prefix="c" %>
<%@ taglib uri="taglib" prefix="tag" %>
<%@ taglib uri="uitaglib" prefix="ui" %>
<%@ page import="com.intland.codebeamer.remoting.GroupType"%>
<%@ page import="com.intland.codebeamer.persistence.dto.SourceFileDto"%>
<%@ page import="com.intland.codebeamer.persistence.dao.impl.SourceFileDaoImpl"%>
<%-- TODO: This meta resolution below is empirical.
A better solution necessary (e.g. according to request) --%>
<%
String path = request.getParameter("filename");
Integer projectId = (Integer)pageContext.findAttribute("proj_id");
SourceFileDto sourceFile = SourceFileDaoImpl.getInstance().findByProjectIdAndPath(projectId, path);
if (sourceFile != null) {
request.setAttribute("file_id", sourceFile.getId());
}
%>