Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/jsp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16237/phpslash-dev/public_html/scripts/fckeditor/_samples/jsp
Added Files:
sample01.jsp sample02_tag.jsp sampleposteddata.jsp
Log Message:
added fckeditor to comment submittal.
--- NEW FILE: sample01.jsp ---
<%@ page language="java" import="com.fredck.FCKeditor.*" %>
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sample01.jsp
* Sample page.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-28 17:17:10
*
* File Authors:
* Simone Chiaretta (si...@pi...)
*/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = editorInstance.Description ;
}
</script>
</head>
<body>
<h1>FCKeditor - JSP - Sample 1</h1>
This sample displays a normal HTML form with an FCKeditor with full features
enabled.
<hr>
<form action="sampleposteddata.jsp" method="get" target="_blank">
<%
FCKeditor oFCKeditor ;
oFCKeditor = new FCKeditor( request, "EditorDefault" ) ;
oFCKeditor.setBasePath( "/FCKeditor/" ) ;
oFCKeditor.setValue( "This is some <B>sample text</B>." ) ;
out.println( oFCKeditor.create() ) ;
%>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
--- NEW FILE: sample02_tag.jsp ---
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="FCK" %>
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sample02_tag.jsp
* Sample page.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-28 17:16:54
*
* File Authors:
* Simone Chiaretta (si...@pi...)
*/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = editorInstance.Description ;
}
</script>
</head>
<body>
<h1>FCKeditor - JSP - Sample 2</h1>
This sample displays a normal HTML form with an FCKeditor with full features
enabled.
<hr>
<form action="sampleposteddata.jsp" method="get" target="_blank">
<FCK:editor id="EditorDefault" basePath="/FCKeditor/">
This is some <B>sample text</B>.
</FCK:editor>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
--- NEW FILE: sampleposteddata.jsp ---
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sampleposteddata.jsp
* This page lists the data posted by a form.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-28 17:18:38
*
* File Authors:
* Simone Chiaretta (si...@pi...)
*/
<%
Enumeration params = request.getParameterNames();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>FCKeditor - Samples - Posted Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>FCKeditor - Samples - Posted Data</h1>
This page lists all data posted by the form.
<hr>
<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
<td noWrap>Field Name </td>
<td>Value</td>
</tr>
<%
String parameter = null ;
while( params.hasMoreElements() )
{
parameter = (String) params.nextElement() ;
%>
<tr>
<td valign="top" nowrap><b><%=parameter%></b></td>
<td width="100%"><%=request.getParameter(parameter)%></td>
</tr>
<%
}
%>
</table>
</body>
</html>
|