±Û¾´ÀÌ :¹æ¹®°´ 2000³â 7¿ù 12ÀÏ 21:08:23
In Reply to: sessionÀ» º¸³»°í ¹Þ´Â ¹æ¹ý posted by ±èÃʺ¸ on 2000³â 7¿ù 12ÀÏ 19:44:37:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Sample extends HttpServlet
{
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();
HttpSession session = req.getSession(true);
String value = (String)ession.getValue"name");
// ¾Ë¾Æ¼...
out.close();
}
}