For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 2 replies, 2 voices, and was last updated 20 years, 9 months ago by
jlb00.
-
AuthorPosts
-
jlb00MemberI’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” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<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?
November 11, 2005 at 8:24 pm #241339
glongmanMember@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” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<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
November 14, 2005 at 12:27 pm #241453
jlb00MemberThanks 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.
-
AuthorPosts
