<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="com.haitian.furm.users.beans.*"%>
<%!Users user = null;%>
<%
user = (Users) session.getAttribute("MainUser"); if (user == null) {
response.sendRedirect("Login.jsp");
}
request.getSession().setAttribute("MainUser", user);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Simple Editor &mdash; Basic Buttons</title>    <style type="text/css">
        /*margin and padding on body element
          can introduce errors in determining
          element position and are not recommended;
          we turn them off as a foundation for YUI
          CSS treatments. */
        body {
            margin:0;
         padding:0;
        }
</style><link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/editor/assets/skins/sam/simpleeditor.css" />
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/container/container_core-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/editor/simpleeditor-beta-min.js"></script><!--there is no custom header content for this example--></head><body class=" yui-skin-sam">
<h1>Simple Editor &mdash; Basic Buttons</h1><div class="exampleIntro">
<p>This example demonstrates how to use the SimpleEditor Control with Basic Buttons.</p>

</div><!--BEGIN SOURCE CODE FOR EXAMPLE =============================== --><form method="post" action="servlet/InsertTopicServlet" id="form1"><tr> 
            <td width="14%" nowrap><font size="2">文章标题:</font></td>
            <td width="86%" nowrap> 
              <input type="text" name="title" size="60">            </td>
           </tr>
<textarea id="editor" name="content" rows="20" cols="75">

</textarea>
<tr align="left" bordercolor="#000000">
            <td nowrap>图像/表情</td>
            <td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="pic/face1.gif">
<input type=radio name=face value="face1.gif" checked>
</td>
          </tr> 
<tr align="right">
            <td height="27">&nbsp;</td>
            <td>作者:<input type="text" name="username" size="10"
value="<%out.println(user.getUserName()); %>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
          </tr>
          <tr>
          <td><input type="submit" name="Submit" value="写好了">
              <input type="reset" name="Submit2" value="重来"></td>
          </tr>
</form><script>(function() {
    var Dom = YAHOO.util.Dom,
        Event = YAHOO.util.Event;
    
    var myConfig = {
        height: '300px',
        width: '530px',
        dompath: true,
        focusAtStart: true
    };    YAHOO.log('Create the Editor..', 'info', 'example');
    var myEditor = new YAHOO.widget.SimpleEditor('editor', myConfig);
    myEditor.render();})();
</script>
<!--END SOURCE CODE FOR EXAMPLE =============================== -->
<!--MyBlogLog instrumentation-->
<script type="text/javascript" src="http://track2.mybloglog.com/js/jsserv.php?mblID=2007020704011645"></script></body>
</html><script type="text/javascript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/rt/rto1_67.js"></script><script>var rt_page="2012400093:FRTMA"; var rt_ip="123.233.177.169"; if ("function" == typeof(rt_AddVar) ){ rt_AddVar("ys", escape("3BAB49D1"));}</script><noscript><img src="http://rtb.pclick.yahoo.com/images/nojs.gif?p=2012400093:FRTMA"></noscript><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['cP1tC0LaX90-']='&U=13elqvk4j%2fN%3dcP1tC0LaX90-%2fC%3d289534.9603437.10326224.9298098%2fD%3dFOOT%2fB%3d4123617%2fV%3d1';
</script><noscript><img width=1 height=1 alt="" src="http://us.bc.yahoo.com/b?P=IeI3kEJe5GJwHXh6SLDAgIHIe.mxqUiym8EAChOY&T=143vf7otd%2fX%3d1219664833%2fE%3d2012400093%2fR%3ddev_net%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d3658302888%2fQ%3d-1%2fS%3d1%2fJ%3d3BAB49D1&U=13elqvk4j%2fN%3dcP1tC0LaX90-%2fC%3d289534.9603437.10326224.9298098%2fD%3dFOOT%2fB%3d4123617%2fV%3d1"></noscript>
<!-- VER-491 --><script language=javascript>
if(window.yzq_p==null)document.write("<scr"+"ipt language=javascript src=http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js></scr"+"ipt>");
</script><script language=javascript>
if(window.yzq_p)yzq_p('P=IeI3kEJe5GJwHXh6SLDAgIHIe.mxqUiym8EAChOY&T=13um71875%2fX%3d1219664833%2fE%3d2012400093%2fR%3ddev_net%2fK%3d5%2fV%3d1.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d2719274850%2fS%3d1%2fJ%3d3BAB49D1');
if(window.yzq_s)yzq_s();
</script><noscript><img width=1 height=1 alt="" src="http://us.bc.yahoo.com/b?P=IeI3kEJe5GJwHXh6SLDAgIHIe.mxqUiym8EAChOY&T=1424njoas%2fX%3d1219664833%2fE%3d2012400093%2fR%3ddev_net%2fK%3d5%2fV%3d3.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d494017309%2fQ%3d-1%2fS%3d1%2fJ%3d3BAB49D1"></noscript>
<!-- com2.devnet.scd.yahoo.com compressed/chunked Mon Aug 25 04:47:13 PDT 2008 -->

解决方案 »

  1.   

    除去form表单的数据是加进去的 其他的都是网上现成的代码····
    奇怪的是 为什么我就不能取得 content的值  其他的就能取得呢······
      

  2.   

    郁闷 没人过来看 是不是太多了  眼花呢  其实代码全部复制 就能看见效果的  就是一个jsp页面······请大家帮我看看问题在那里吧······也就是我在取得content的值 取不到  但是如果放入默认的值   数据库就会取得默认的值,
    其他一切正常