资源简介
java小型论坛java小型论坛
java小型论坛
java小型论坛
java小型论坛
v
代码片段和文件信息
package com;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PublishServlet extends HttpServlet {
/**
* Constructor of the object.
*/
public PublishServlet() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}
/**
* The doGet method of the servlet.
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
doPost(requestresponse);
}
/**
* The doPost method of the servlet.
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
request.setCharacterEncoding(“GBK“);
String content = request.getParameter(“content“);
response.setContentType(“text/html;charset=GBK“);
PrintWriter out = response.getWriter();
out
.println(““);
out.println(““);
out.println(“ tle>publish Servlet tle>“);
out.println(“ “);
out.println(content);
out.println(“ “);
out.println(““);
out.flush();
out.close();
}
/**
* Initialization of the servlet.
*
* @throws ServletException if an error occure
*/
public void init() throws ServletException {
// Put your code here
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 442 2010-06-15 09:50 noteapp\noteapp\.classpath
文件 294 2011-05-31 20:48 noteapp\noteapp\.myme
文件 1225 2010-06-15 09:50 noteapp\noteapp\.project
文件 804 2011-06-08 01:09 noteapp\noteapp\noteapp.sql
文件 761 2011-05-31 20:46 noteapp\noteapp\readme.txt
文件 2304 2010-06-15 09:51 noteapp\noteapp\src\com\PublishServlet.java
文件 236 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\behaviors\disablehandles.htc
文件 822 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\behaviors\showtableborders.htc
文件 2040 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\fck_editorarea.css
文件 2549 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\fck_internal.css
文件 1514 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\fck_showtableborders_gecko.css
文件 184 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\images\fck_anchor.gif
文件 599 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\images\fck_flashlogo.gif
文件 105 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\images\fck_hiddenfield.gif
文件 54 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\css\images\fck_pagebreak.gif
文件 439 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\fcknumericfield.htc
文件 1662 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\fck_dialog_common.css
文件 4106 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\fck_dialog_common.js
文件 74 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\images\locked.gif
文件 104 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\images\reset.gif
文件 75 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\images\unlocked.gif
文件 711 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\common\moz-bindings.xm
文件 2044 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_about\logo_fckeditor.gif
文件 920 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_about\logo_fredck.gif
文件 5183 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_about.html
文件 6225 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_anchor.html
文件 3161 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_button.html
文件 3166 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_checkbox.html
文件 5229 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_colorselector.html
文件 2843 2010-06-15 09:50 noteapp\noteapp\WebRoot\fckeditor\editor\dialog\fck_docprops\fck_document_preview.html
............此处省略379个文件信息
评论
共有 条评论