Disregard my last, Calvin sent me his project yesterday and Home.html is under /WEB-INF so I don't think a badly crafted url is the cause of his woes.
(Calvin's project work for me BTW). Geoff On 2/25/06, Geoff Longman <[EMAIL PROTECTED]> wrote: > > hmm, yes > > http://localhost/Home.html might load the template > > while > > http://localhost/app would load the, dynamic, Tapestry home page. > > I'm not near my setup to try it out Calvin but do check the url you were > using. > > Geoff > > On 2/25/06, Sebastiaan van Erk <[EMAIL PROTECTED] > wrote: > > > > What URL are you using to access your page? > > > > Are you sure you're not just viewing the static .html page? > > > > Greetings, > > Sebastiaan > > > > Calvin Deiterich wrote: > > > Barry, > > > Sorry about that, the code is below: > > > The code: > > > Home.html > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > > <html> > > > <head> > > > <title>Hello World</title> > > > </head> > > > <body> > > > Welcome to your first <b>Tapestry Application</b> > > > <p> > > > <h1> > > > <span jwcid="insertSomeText">This text will be replaced by > > Tapestry</span> > > > </h1> > > > </body> > > > </html> > > > > > > Home.java > > > package tutorial.hello; > > > > > > import org.apache.tapestry.html.BasePage; > > > public class Home extends BasePage > > > { > > > public String getSomeText() > > > { > > > return "It's a brave new world!"; > > > } > > > } > > > > > > Home.page > > > <?xml version="1.0 " encoding="UTF-8"?> > > > <!DOCTYPE page-specification PUBLIC > > > "-//Apache Software Foundation//Tapestry Specification 3.0//EN" > > > " http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd "> > > > <!-- generated by Spindle, http://spindle.sourceforge.net --> > > > > > > <page-specification class=" tutorial.hello.Home"> > > > <component id="insertSomeText" type="Insert"> > > > <binding name="value" expression="someText"/> > > > </component> > > > </page-specification> > > > > > > web.xml > > > ?xml version="1.0" encoding="UTF-8"?> > > > <!DOCTYPE web-app > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > > "http://java.sun.com/dtd/web-app_2_3.dtd "> > > > <!-- generated by Spindle, http://spindle.sf.net --> > > > > > > > > > <web-app> > > > <display-name>HelloWorld</display-name> > > > <servlet> > > > <servlet-name>HelloWorld</servlet-name> > > > > > > <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class> > > > <load-on-startup>1</load-on-startup> > > > </servlet> > > > <servlet-mapping> > > > <servlet-name>HelloWorld</servlet-name> > > > <url-pattern>/app</url-pattern> > > > </servlet-mapping> > > > </web-app> > > > > > > HelloWorld.application > > > <?xml version="1.0" encoding="UTF-8"?> > > > <!DOCTYPE application PUBLIC > > > "-//Apache Software Foundation//Tapestry Specification 3.0//EN" > > > "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd "> > > > <!-- generated by Spindle, http://spindle.sourceforge.net --> > > > > > > <application name="HelloWorld" > > > engine-class="org.apache.tapestry.engine.BaseEngine"> > > > > > > <description>My Hello World Application</description> > > > > > > <page name="Home" specification-path="Home.page"/> > > > > > > </application> > > > > > > > > > Barry Books wrote the following on 2/25/2006 8:15 AM: > > >> You didn't post the code but I suspect you need <span jwcid="@Insert" > > > > >> value="ognl:yourMethod"/> Also what out for misspelling jwcid. > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > >> > > >> > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > The Spindle guy. http://spindle.sf.net > Get help with Spindle: > http://lists.sourceforge.net/mailman/listinfo/spindle-user > Blog: http://jroller.com/page/glongman > Feature Updates: http://spindle.sf.net/updates > -- The Spindle guy. http://spindle.sf.net Get help with Spindle: http://lists.sourceforge.net/mailman/listinfo/spindle-user Blog: http://jroller.com/page/glongman Feature Updates: http://spindle.sf.net/updates
