日期:2014-05-17  浏览次数:20777 次

action 获取ewebeditor内容
我在一个JSP页面调用了ewebeditor,在structs架构下想在action中获取ewebeditor的值保存到数据库,怎么获取呢?请教高手??
这是我调用的代码
<textarea name="content" id="Content"></textarea>
<iframe id="eWebEditor1" src="admin/eWebEditor/eWebEditor.htm?id=content&style=s_blue" frameborder=1 scrolling=no width="620" height="405"></iframe>

在action中用传统的 ***Form.getContent()方法不行啊,得不到值


------解决方案--------------------

思路,在eWebEditor.htm的也面里
<script type="text/javascript" language="javascript"> 
var strpara=window.location.search; //得到 ?和其后面的内容

//...处理strpara...

//然后AJAX发送给保存页面
</script>