<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <% final String appContext = net.sourceforge.fenixedu._development.PropertiesManager.getProperty("app.context"); final String context = (appContext != null && appContext.length() > 0) ? "/" + appContext : ""; net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard board = (net.sourceforge.fenixedu.domain.messaging.AnnouncementBoard) request.getAttribute("announcementBoard"); net.sourceforge.fenixedu.domain.messaging.Announcement ann = (net.sourceforge.fenixedu.domain.messaging.Announcement) request.getAttribute("announcement"); if (board!=null && board.getReaders()==null) { %> <%=request.getScheme()%>://<%=request.getServerName()%>:<%=request.getServerPort()%><%=context%><%="/external/announcementsRSS.do?announcementBoardId=" + announcementBoard.getIdInternal().toString()%> <% } else if(ann!=null && ann.getAnnouncementBoard().getReaders()==null) { %> <%=request.getScheme()%>://<%=request.getServerName()%>:<%=request.getServerPort()%><%=context%><%="/external/announcementsRSS.do?announcementBoardId=" + announcement.getAnnouncementBoard().getIdInternal().toString()%> <% } %>