getContent.jsp 901 B

123456789101112131415161718192021
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  3. <script src="../uparse.js" type="text/javascript"></script>
  4. <script>
  5. uParse('.content',{
  6. 'highlightJsUrl':'../third-party/SyntaxHighlighter/shCore.js',
  7. 'highlightCssUrl':'../third-party/SyntaxHighlighter/shCoreDefault.css'
  8. })
  9. </script>
  10. <%
  11. request.setCharacterEncoding("utf-8");
  12. response.setCharacterEncoding("utf-8");
  13. String content = request.getParameter("myEditor");
  14. String content1 = request.getParameter("myEditor1");
  15. response.getWriter().print("第1个编辑器的值");
  16. response.getWriter().print("<div class='content'>"+content+"</div>");
  17. response.getWriter().print("<br/>第2个编辑器的值<br/>");
  18. response.getWriter().print("<textarea style='width:500px;height:300px;'>"+content1+"</textarea><br/>");
  19. %>