±Û¾´ÀÌ :¹é½Â¿ë 1998³â 3¿ù 20ÀÏ 20:13:17
¼ºí¸´¿¡¼ HttpServletRequest·Î ³Ñ¾î¿Â Argument¸¦
¹Þ¾Æ DB¿¡ ÀúÀåÇϱâ À§ÇØ StringÇüÀÇ µ¥ÀÌŸ¸¦ ByteÇüÀ¸·Î
ÀüȯÇÏ¿© ÀúÀåÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϴµ¥
Byte ·Î º¯È¯ÇÏ´Â ºÎºÐ¿¡¼ ´õ ÀÌ»óÀÇ ÇÁ·Î±×·¥À»
½ÇÇàÇÏÁö ¸øÇÏ°í Browser¿¡ 'Document No Data'¶ó´Â
¸Þ¼¼Áö¸¸ ³ª¿É´Ï´Ù. ¹«½¼ ¹®Á¦°¡ Àִ°ÍÀϱî¿ä!
½ÇÁ¦ ¿¹)
public void loadModule(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
String userid = req.getParameter("userid");
String date = req.getParameter("date");
String subject = req.getParameter("subject");
String content = req.getParameter("content");
byte[] b = new byte[content.length()];
b = content.getBytes();
res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();
........
}