java编译时找不到符号 10
/***Author:*Date:*Description:*/importjava.io.*;importjavax.servlet.*;importjavax.ser...
/**
* Author:
* Date:
* Description:
*/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Label extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
/**
* Indicate the content type (for example, text/html),
* being returned by the response
*/
response.setContentType("text/html");
/**
* Retrieve an output stream to use to send data to the client
*/
PrintWriter out = response.getWriter();
/**
* Get the user input from the form
*/
String sendername= request.getParameter("SenderName");
String senderaddress = request.getParameter("SenderStrtAddr");
String senderzip = request.getParameter("SenderCityZip");
String recivername = request.getParameter("ReceiverName");
String reciveraddress = request.getParameter
("ReceiverStrtAddr");
String reciverzip = request.getParameter("ReceiverCityZip");
String destination = request.getParameter("destination");
/**
* Construct the HTML response : start with the header
*/
} 展开
* Author:
* Date:
* Description:
*/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Label extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
/**
* Indicate the content type (for example, text/html),
* being returned by the response
*/
response.setContentType("text/html");
/**
* Retrieve an output stream to use to send data to the client
*/
PrintWriter out = response.getWriter();
/**
* Get the user input from the form
*/
String sendername= request.getParameter("SenderName");
String senderaddress = request.getParameter("SenderStrtAddr");
String senderzip = request.getParameter("SenderCityZip");
String recivername = request.getParameter("ReceiverName");
String reciveraddress = request.getParameter
("ReceiverStrtAddr");
String reciverzip = request.getParameter("ReceiverCityZip");
String destination = request.getParameter("destination");
/**
* Construct the HTML response : start with the header
*/
} 展开
1个回答
2013-11-12
展开全部
CLASSPATH 引用 tomcat\lib\里面的servlet-api.jar
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询