V
vkeyj
Unregistered / Unconfirmed
GUEST, unregistred user!
这是要编译的代码
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class j5_03 extends HttpServlet
{
public voiddo
Post(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
res.setContentType("text/html"
PrintWriter out=res.getWriter();
out.println("<html><head></head><body>"
out.println("name:"+req.getParameter("myname");
out.println("<br>"
out.println("love:"+req.getParameter("love");
out.println("</body></html>"
out.close();
}
public voiddo
Get(HttpServletRequest REQ,HttpServletResponse res)throws ServletException,IOException
{
doPost(req,res);
}
}
jcreator提示的错误信息是:
description resource location
cannot resolve symbol variable req j5_03.java line 19
我已经在jcreator中增加了servlet-api.jar包,修改了很多次,还是找不到原因,请高手指点迷津
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class j5_03 extends HttpServlet
{
public voiddo
Post(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
res.setContentType("text/html"
PrintWriter out=res.getWriter();
out.println("<html><head></head><body>"
out.println("name:"+req.getParameter("myname");
out.println("<br>"
out.println("love:"+req.getParameter("love");
out.println("</body></html>"
out.close();
}
public voiddo
Get(HttpServletRequest REQ,HttpServletResponse res)throws ServletException,IOException
{
doPost(req,res);
}
}
jcreator提示的错误信息是:
description resource location
cannot resolve symbol variable req j5_03.java line 19
我已经在jcreator中增加了servlet-api.jar包,修改了很多次,还是找不到原因,请高手指点迷津