portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/content-server/src/webapp index.jsp
Date Fri, 12 Mar 2004 14:31:02 GMT
weaver      2004/03/12 06:31:02

  Modified:    content-server/src/webapp index.jsp
  Added:       content-server/src/webapp/WEB-INF/content/themes/red/skin1
                        skin_page.html
  Log:
  example webapp shows an example of overriden content
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/content-server/src/webapp/WEB-INF/content/themes/red/skin1/skin_page.html
  
  Index: skin_page.html
  ===================================================================
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  
  <html>
    <head>
      <title>Skin 1 IFRAME (Overriden by the red theme)</title>
      
    </head>
    <body style="background-color: red">
  
  	<h2>
       This is a skin component for "skin1" that has been overriden
       by theme-specific content. 
      </h2>
  </body>
  </html>
  
  
  1.4       +19 -5     jakarta-jetspeed-2/content-server/src/webapp/index.jsp
  
  Index: index.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/content-server/src/webapp/index.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- index.jsp	11 Mar 2004 21:58:25 -0000	1.3
  +++ index.jsp	12 Mar 2004 14:31:02 -0000	1.4
  @@ -3,13 +3,17 @@
   
   
   <%
  +    java.util.List contentPathes = new java.util.ArrayList(2);
   	if(request.getParameter("setTheme") != null)
   	{
  -		java.util.List contentPathes = new java.util.ArrayList(2);
  -        contentPathes.add(request.getParameter("setTheme"));
  -        request.getSession().setAttribute("org.apache.jetspeed.content.pathes", contentPathes);
  -        contentPathes.add("");
  +        contentPathes.add(request.getParameter("setTheme"));               
   	}
  +	else
  +	{
  +		contentPathes.add("themes/blue");               
  +	}
  +	contentPathes.add("skins");
  +	request.getSession().setAttribute("org.apache.jetspeed.content.pathes", contentPathes);
   %>
   <html>
     <head>
  @@ -32,6 +36,16 @@
        <br />
         <a href="index.jsp?setTheme=themes/blue">Set theme to Blue</a>
      </p>
  -   <iframe src="content/page.html" width="300" height="300" />
  +  <iframe src="content/page.html" width="300" height="300" ></iframe>
  +   <br>
  +
  +   <br>
  +    <iframe src="content/skin1/skin_page.html" width="300" height="300" ></iframe>
  +    
  +
  +    <br>
  +    
  +    <iframe src="content/skin2/skin_page.html" width="300" height="300" ></iframe>
  +   
     </body>
    </html>  
  
  
  

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


Mime
View raw message