我使用embedded式Jetty制作了一个RCP插件,如下所示: 1)在plugin.xml – > Dependencies中,我添加了以下内容: org.eclipse.equinox.http.jetty org.eclipse.equinox.http.registry org.mortbay.jetty.server javax.servlet 2)在plugin.xml – > Extensions中,我添加了一个Servlet扩展点( org.eclipse.equinox.http.registry.servlet ) class: TemperatureServlet alias:/temperature TemperatureServlet看起来像这样: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class TemperatureServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("doGet Called"); resp.sendRedirect("Convertor.jsp"); } } Convertor.jsp文件如下所示: <%@ page language="java" contentType="text/html; […]