1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| <%@ page buffer="none" autoFlush="true" contentType="text/html; charset=utf-8"
%><%
String text = request.getParameter("text");
if (text == null) {
text = "<em>Sample</em> text";
}
System.out.println(text);
%><html>
<head>
<script type="text/javascript" src="js/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
<!--
function onLoad() {
CKEDITOR.replace("editor2");
}
// -->
</script>
</head>
<body onload="return onLoad();">
<form method="post" action="sample.jsp">
<textarea id="editor2" name="text"><%=text %></textarea>
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
|