20120420

1.Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring Web pages from a server to a user's browser and SMTP for transferring electronic mail across the Internet in that, like these technologies, FTP uses the Internet's TCP/IP protocols to enable data transfer.
  FTP is most commonly used to download a file from a server using the Internet or to upload a file to a server (e.g., uploading a Web page file to a server).

---------------------------------------------------
http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/40d83498-f52f-41e9-8d11-f2ea43413479

It’s probably because UAC. Try right clicking and running as administrator and seeing if it goes away.!!!!!!!!!!!!!!!!!!!!!!!

-----------------------------------------------------------------

method of servlet :
init();
service();
destroy();
getServleConfig();
getServletInfo();


method of HttpServlet:
doDelete();
doGet();
doHead();
doOptions();
doPost();
doPut();
doTrace();
getLastModified();
service();

getLastModified(HttpServletRequest req)
//Returns the time the HttpServletRequest object was last modified, in milliseconds since midnight January 1, 1970 GMT.

service(HttpServletRequest req, HttpServletResponse resp)
//Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class.

--------------------------------------------------------------------

The code below shows how this named servlet can be accessed in the service method of another servlet

public void service (HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException  {
  ...
  MyServlet ms=(MyServlet)  getServletConfig().getServletContext().getServlet("myname");
  ...
}


That said, This whole apporach of accessing servlets in another servlets has been deprecated in the 2.1 version of the servlet API due to the security issues. The cleaner and better apporach is to just avoid accessing other servlets directly and use the RequestDispatcher instead
-----------------------------------------------------------------

猜你喜欢

转载自wwwjjq.iteye.com/blog/1491266