|
head first servlet jsp º¸±¸ µû¶ó Çϰí Àִµ¥¿ä.
ÀÌŬ¸³½º¿¡¼ ÇÏÁö ¾Ê±¸ À̺η¯ ÅØ½ºÆ® ¿¡µðÅÍ¿¡¼ ÄÚµùÇϰí ÀÖ½À´Ï´Ù. ÄÄÆÄÀÏÀº Ä¿¸Çµå¿¡¼ Çϰí¿ä.
Ã¥ 118 ÆäÀÌÁö Äڵ带 ÄÄÆÄÀÏ (javac -d .....) ÇÏ·Á°í ÇÏ´Ï±î ¾Æ·¡¿Í °°ÀÌ ¿¡·¯°¡ ³³´Ï´Ù.
C:\works\beeV\src\com\example\web\BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
C:\works\beeV\src\com\example\web\BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
C:\works\beeV\src\com\example\web\BeerSelect.java:19: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
3 errors
ÄÄÆÄÀÏ ÇÏ·Á´Â ¼Ò½ºÄÚµå´Â ¾Æ·¡¿Í °°½À´Ï´Ù.
package com.example.web;
import com.example.model.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class BeerSelect extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Beer Selection Advice ");
String c = request.getParameter("color");
out.println(" God beer color " + c);
BeerExpert be = new BeerExpert();
ArrayList
|