weaver 2003/12/31 12:06:04
Modified: content-server/src/webapp index.jsp
content-server/src/webapp/WEB-INF web.xml
Added: content-server/src/webapp/WEB-INF/content/themes/blue/html
page.html
content-server/src/webapp/WEB-INF/content/themes/red/html
page.html
Log:
Added support for static HTML pages. See the IFRAME example in the index.jsp.
Revision Changes Path
1.1
jakarta-jetspeed-2/content-server/src/webapp/WEB-INF/content/themes/blue/html/page.html
Index: page.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Blue IFRAME</title>
</head>
<body style="background-color: blue">
<h2>
This is IFRAME's html was loaded from the blue theme
</h2>
</body>
</html>
1.2 +8 -1 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- index.jsp 31 Dec 2003 19:48:45 -0000 1.1
+++ index.jsp 31 Dec 2003 20:06:04 -0000 1.2
@@ -1,4 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+
+
<%
if(request.getParameter("setTheme") != null)
{
@@ -8,8 +11,11 @@
<html>
<head>
<title>Test content</title>
+ <script language="JavaScript1.2" type="text/javascript"
src="content/theme/script/test.js"></script>
</head>
- <body>
+ <body onLoad="Hello();">
+ <h1 id="target">
+ </h1>
<p>
This is a normal, static image: <img src="images/myimage.gif" align="middle"/>
</p>
@@ -23,5 +29,6 @@
<br />
<a href="index.jsp?setTheme=blue">Set theme to Blue</a>
</p>
+ <iframe src="content/theme/page.html" width="300" height="300" />
</body>
</html>
1.1
jakarta-jetspeed-2/content-server/src/webapp/WEB-INF/content/themes/red/html/page.html
Index: page.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Red IFRAME</title>
</head>
<body style="background-color: red">
<h2>
This is IFRAME's html was loaded from the red theme
</h2>
</body>
</html>
1.2 +4 -0 jakarta-jetspeed-2/content-server/src/webapp/WEB-INF/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/content-server/src/webapp/WEB-INF/web.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- web.xml 31 Dec 2003 19:48:46 -0000 1.1
+++ web.xml 31 Dec 2003 20:06:04 -0000 1.2
@@ -43,6 +43,10 @@
<filter-name>ContentServer</filter-name>
<url-pattern>*.js</url-pattern>
</filter-mapping>
+ <filter-mapping>
+ <filter-name>ContentServer</filter-name>
+ <url-pattern>*.html</url-pattern>
+ </filter-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]