Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 277 → Rev 278

/impl/src/java/pt/estgp/estgweb/web/utils/ProxyUtils.java
New file
0,0 → 1,19
package pt.estgp.estgweb.web.utils;
 
import javax.servlet.http.HttpServletRequest;
 
/**
* @author Jorge Machado
* @date 8/Out/2008
* @see pt.estgp.estgweb.web.utils
*/
public class ProxyUtils
{
// proxy/accaoSocialAlunosPortalMenu/estgp
 
public static String getTopImageLink(HttpServletRequest request)
{
System.out.println(request.getPathInfo());
return null;
}
}
/impl/src/web/imgs/top.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/impl/src/web/layout/header.jsp
1,3 → 1,4
<%@ page import="pt.estgp.estgweb.web.utils.ProxyUtils" %>
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
7,6 → 8,23
<table width="100%">
<tr>
<td>
 
<%
String link = ProxyUtils.getTopImageLink(request);
if(link == null)
{
%>
<img alt="estg" src="<%=request.getContextPath()%>/imgs/top.jpg"/>
<%
}
else
{
%>
<img alt="estg" src="<%=link%>"/>
<%
}
%>
 
<img alt="estg" src="<%=request.getContextPath()%>/imgs/top.jpg"/>
</td>
</tr>