我在jsp页面中嵌入了ueditor编辑,可是怎么将里面的内容传到数据库中。我用的是Struts2.代码如下:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %><html>
  <head>
    <title>添加百家争鸣</title>
   <script type="text/javascript" charset="utf-8" src="editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="editor_all.js"></script>
    <script type="text/javascript" src="ueditor/editor_config.js"></script>
<script type="text/javascript" src="ueditor/editor_all.js"></script>
<link href="ueditor/themes/default/ueditor.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="ueditor/themes/default/ueditor.css"/> 
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   
</head>
<script type="text/javascript">
function check(){
var id = document.getElementById("id").value;

var date= document.getElementById("date").value;

if(id.length==0){
alert("请输入ID!");
document.f1.username.focus();
return ;
} if(date.length==0){
alert("请输入日期!");
document.f1.phone.focus();
return ;
} document.f1.action="EventAction_saveEvent.action";
document.f1.submit();
}
</script>

  <body bgcolor="#a8c7ce">
<center>

<form name="f1">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
<tr>
<td width="100%" height="30"  align="center">添加百家争鸣
</td>
</tr>
</table> <div>
ID:
<input type="text" id="id" name="event.id" />
</div> <div class="xiweidaxiao">
<script name="event.information"  type="text/plain" id="myContent" cols="45" rows="5" style="width:95%; margin:0 auto; "></script><script type="text/javascript">
 var editor = new UE.ui.Editor();
    editor.render('myContent');
</script>
 </div> <div>
日期:
<input type="text" id="date" name="event.date" onfocus="HS_setDate(this)"/>
<input type="button" value="增加" onclick="check()"/>
<input type="reset" value="重置"/> 
<input type="button" value="返回" onclick="javascript:window.history.go(-1);"/>

</div>


       <div align="center">
         <font color="red">
         <s:property value="#request.save"/>
  
         </font>
        </div>
</form>
</center>
  </body>
  
</html>
JSP数据库ueditor