facebook

New barebones Tapestry project

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241336 Reply

    jlb00
    Member

    I’ve done lots of JSP programming in “the good old days” before all these frameworks were built. Now my department has decided to implement its next project in Tapestry, so I’m trying to come up to speed on how to use myeclipse with Tapestry.

    I’m using Eclipse 3.1.1 and MyEclipse 4.0.3.

    My struggle is with getting a bare bones Tapestry project going with MyEclipse. I’ve read as many posts as I’ve found (filtering out, I hope, old information from the days when MyEclipse had not integrated Spindle) and as far as I can tell I should be able to do the following:

    Right-click “New Project”
    Choose “MyEclipse|J2EE Projects|Web Project”
    Give the project its name, say “Tapestry Test”
    Click “Finish”
    Right-click on the “Tapestry Test” project, choose “My Eclipse | Add Tapestry Capabilities”
    Click “Finish”
    Click “Yes”
    Deploy to your favorite web server (I use Tomcat 5.5)

    and it deploys successfully but I can’t seem to get a URL to work. The web.xml says:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;
    <servlet>
    <servlet-name>Tapestry Test</servlet-name>
    <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Tapestry Test</servlet-name>
    <url-pattern>/app</url-pattern>
    </servlet-mapping>
    </web-app>

    Am I missing a step or two? Can anybody help?

    #241339

    glongman
    Member

    @jlb00 wrote:

    I’ve done lots of JSP programming in “the good old days” before all these frameworks were built. Now my department has decided to implement its next project in Tapestry, so I’m trying to come up to speed on how to use myeclipse with Tapestry.

    I’m using Eclipse 3.1.1 and MyEclipse 4.0.3.

    My struggle is with getting a bare bones Tapestry project going with MyEclipse. I’ve read as many posts as I’ve found (filtering out, I hope, old information from the days when MyEclipse had not integrated Spindle) and as far as I can tell I should be able to do the following:

    Right-click “New Project”
    Choose “MyEclipse|J2EE Projects|Web Project”
    Give the project its name, say “Tapestry Test”
    Click “Finish”
    Right-click on the “Tapestry Test” project, choose “My Eclipse | Add Tapestry Capabilities”
    Click “Finish”
    Click “Yes”
    Deploy to your favorite web server (I use Tomcat 5.5)

    and it deploys successfully but I can’t seem to get a URL to work. The web.xml says:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;
    <servlet>
    <servlet-name>Tapestry Test</servlet-name>
    <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Tapestry Test</servlet-name>
    <url-pattern>/app</url-pattern>
    </servlet-mapping>
    </web-app>

    Am I missing a step or two? Can anybody help?

    an url like http://localhost:8080/app would load the home page for the application. However, the files generated by Add Tapestry Capabilities are scaffolding and not intended to be runnable example code (without your domain specific additions of course). Thus, out of the box, Home.page will render as a blank page.

    The Tapestry tool support in ME is geared towards building apps in Tapestry and although it does help new and veteran users both, it’s not intended as a “Learning Tapestry Tutorial” tool. For more information on learning Tapestry I would recommend joining the Tapestry User mailing list. There are a few books out there now on the subject too (“Tapestry in Action” and “Enjoying Web Development with Tapestry” spring to mind).

    Geoff

    #241453

    jlb00
    Member

    Thanks for the response! It turned out that the URL http://localhost:8080/TapestryTest/app (I got rid of the space in the project name just to make things simpler and perhaps avoid the need for + or %20) works. “Tapestry in Action” is the book I’ve been using, and it’s been very helpful.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: New barebones Tapestry project

You must be logged in to post in the forum log in