Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I haven't seen any good plugin which will satisfy your requirement.</p> <p>As an alternative you can put the jetty server's jar to your class path (I am using jetty-6.1.5.jar and jetty-util-6.1.5.jar) and write a class like the following.</p> <pre><code>package net.eduportal.jetty; import javax.servlet.ServletContext; import org.mortbay.jetty.Server; import org.mortbay.jetty.security.UserRealm; import org.mortbay.jetty.webapp.WebAppContext; public class JettyRunner { public static final int PORT = 8080; public static final String BASE_URL = "http://localhost:" + PORT; private static final JettyRunner _instance = new JettyRunner(); public static JettyRunner getInstance() { return _instance; } // /////////////////////////////////////////////////////////////// // Singleton // ///////////// private Server server = null; private WebAppContext wac = null; private JettyRunner() { } public interface WebApplicationInitializer { public void init(WebAppContext wac); } public ServletContext getServletContext() { return wac.getServletContext(); } public void start() throws Exception { if (server == null) { server = new Server(PORT); server.setStopAtShutdown(true); wac = new WebAppContext(); wac.setContextPath("/test"); wac.setResourceBase("war"); wac.setClassLoader(this.getClass().getClassLoader()); server.addHandler(wac); server.start(); } } public void stop() throws Exception { if (server != null) { server.stop(); server = null; } } public static void main(String argv[]) throws Exception { JettyRunner.getInstance().start(); } } </code></pre> <p>The above code assumes there is a folder called "war" in the class path which contains the same WEB-INF/* folders. When you run the code from eclipse the server will start and you can view the jsps by accessing the location localhost:8080/test/*</p> <p>See <a href="http://jetty.mortbay.org/jetty5/tut/Server.html" rel="nofollow noreferrer">http://jetty.mortbay.org/jetty5/tut/Server.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload