portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morci...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html Info.jsp content.jsp
Date Fri, 13 Sep 2002 20:22:48 GMT
morciuch    2002/09/13 13:22:48

  Added:       webapp/WEB-INF/templates/jsp/layouts/html content.jsp
               webapp/WEB-INF/templates/jsp/screens/html Info.jsp
                        content.jsp
  Log:
  Added JSP equivalents for templates used in print and info portlet actions. These actions
wouldn't work if JSP is set as a default template engine.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/layouts/html/content.jsp
  
  Index: content.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed'%>
  
  <%@ page import = "org.apache.turbine.util.RunData" %> 
  
  <% 
  String screenJsp = (String)request.getAttribute("screenJsp"); 
  RunData rundata = (RunData)request.getAttribute("rundata"); 
  %>
  
  <HEAD>
      <base href="<jetspeed:uriLookup type="BaseURL" />">
      <link href="css/default.css" type="text/css" rel="stylesheet">
  </HEAD>  
  <jsp:include page="<%= screenJsp %>" flush="true" /> 
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/Info.jsp
  
  Index: Info.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.jetspeed.services.rundata.JetspeedRunData" %> 
  <%@ page import = "org.apache.jetspeed.util.template.JetspeedTool" %> 
  
  <% 
  JetspeedRunData rundata = (JetspeedRunData) request.getAttribute("rundata"); 
  rundata.setMode("customize");
  %>
  <%=JetspeedTool.getPortletInfoPortlet(rundata).getContent(rundata)%>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/content.jsp
  
  Index: content.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.jetspeed.services.rundata.JetspeedRunData" %> 
  <%@ page import = "org.apache.jetspeed.util.template.JetspeedTool" %> 
  
  <% 
  JetspeedRunData rundata = (JetspeedRunData) request.getAttribute("rundata"); 
  if (rundata.getJs_peid() != null)
  {
      JetspeedTool jt = new JetspeedTool(rundata);
  %>
      <%=jt.getPortalElement(rundata.getJs_peid())%>
  <%
  } 
  else
  {
  %>
      <p>Portal Element Id missing</p>
  <%    
  }
  %>
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message