Quick start

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(migration)
 
(renamed tag to directive)
Line 9: Line 9:
 
* '''Browse''' <tt>http://localhost:8080</tt>
 
* '''Browse''' <tt>http://localhost:8080</tt>
 
* Add '''JSP''' files like <tt>resin-3.0.x/webapps/ROOT/hello.jsp</tt>.  The URL in your browser is <tt>http://localhost:8080/hello.jsp</tt>
 
* Add '''JSP''' files like <tt>resin-3.0.x/webapps/ROOT/hello.jsp</tt>.  The URL in your browser is <tt>http://localhost:8080/hello.jsp</tt>
* Add '''servlets''' like <tt>resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java</tt>, and a [[servlet]] and [[servlet-mapping]] tag in <tt>resin-3.0.x/webapps/ROOT/WEB-INF/[[web.xml]]</tt>
+
* Add '''servlets''' like <tt>resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java</tt>, and a [[servlet]] and [[servlet-mapping]] directive in <tt>resin-3.0.x/webapps/ROOT/WEB-INF/[[web.xml]]</tt>
 
* Add '''[[.war]]''' files like <tt>resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello</tt>
 
* Add '''[[.war]]''' files like <tt>resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello</tt>
 
* Create '''[[web-app]]s''' directly like <tt>resin-3.0.x/webapps/hello/index.jsp</tt> url in your browser is <tt>http://localhost:8080/hello</tt>.
 
* Create '''[[web-app]]s''' directly like <tt>resin-3.0.x/webapps/hello/index.jsp</tt> url in your browser is <tt>http://localhost:8080/hello</tt>.
 
* Create a '''[[web.xml]]''' file like <tt>resin-3.0.x/webapps/hello/WEB-INF/web.xml</tt> to configure the 'hello' web application.
 
* Create a '''[[web.xml]]''' file like <tt>resin-3.0.x/webapps/hello/WEB-INF/web.xml</tt> to configure the 'hello' web application.
 
</ol>
 
</ol>

Revision as of 20:22, 21 February 2006

The Resin standalone web server starts listening to HTTP requests on port 8080.

    • Download Resin.
    • Install JDK 1.4 or later. On Unix, set the JAVA_HOME variable or link /usr/java to the java home. On Windows, check to make sure the JDK installation set JAVA_HOME correctly.
    • unzip/untar the Resin download
    • On Unix (including Mac OS X), execute ./configure; make; make install
    • Start on Unix resin-3.0.x/bin/httpd.sh on Windows resin-3.0.x/httpd.exe
    • Browse http://localhost:8080
    • Add JSP files like resin-3.0.x/webapps/ROOT/hello.jsp. The URL in your browser is http://localhost:8080/hello.jsp
    • Add servlets like resin-3.0.x/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java, and a servlet and servlet-mapping directive in resin-3.0.x/webapps/ROOT/WEB-INF/web.xml
    • Add .war files like resin-3.0.x/webapps/hello.war<tt>, url in your browser is <tt>http://localhost:8080/hello
    • Create web-apps directly like resin-3.0.x/webapps/hello/index.jsp url in your browser is http://localhost:8080/hello.
    • Create a web.xml file like resin-3.0.x/webapps/hello/WEB-INF/web.xml to configure the 'hello' web application.
Personal tools