If I set it to context and run I end up in: Directory: / WEB-INF/ 0 bytes Feb 23, 2006 8:32:04 PM
If I then click on WEB-INF I get: HTTP ERROR: 404 Not Found RequestURI=/WEB-INF/Home.html Powered by Jetty:// If I set it to context/WEB-INF I end up with Directory: / HelloWorld.application 488 bytes Feb 23, 2006 8:34:45 PM Home.html 277 bytes Feb 24, 2006 6:46:09 AM Home.page 448 bytes Feb 25, 2006 5:37:53 PM classes/ 0 bytes Feb 23, 2006 9:09:30 PM web.xml 647 bytes Feb 23, 2006 8:32:04 PM With the same problem with I run Home.html Calvin Pablo Ruggia wrote the following on 2/25/2006 5:58 PM: > When you create your Run Configuration for your project, there is an option > named "webapp root dir:", seems that you did not fill that textbox, you have > to select "context", so jetty knows where your context directory for your > application is located. > > On 2/25/06, Calvin Deiterich <[EMAIL PROTECTED]> wrote: > >>I am running this "out-of-the_box" so to speak. >>I installed Spindle and Jetty Launcher plugins for Eclipse and >>downloaded Jetty. I followed all the directions I could find and I can >>open the Home.html page. It just will not replace the text. >>Calvin >> >> >>James Carman wrote the following on 2/25/2006 5:29 PM: >> >>>You are not supposed to be able to "browse" into the WEB-INF >> >>directory. Are >> >>>you sure you're running things right? >>> >>>-----Original Message----- >>>From: Calvin Deiterich [mailto:[EMAIL PROTECTED] >>>Sent: Saturday, February 25, 2006 5:22 PM >>>To: Tapestry users >>>Subject: Re: New user/HelloWorld Application - Cannot get >>>jwcid="insertSomeText to work >>> >>>After I start up Jetty Launcher within Eclipse I go to >>>http://localhost:8080/ >>>That brings me to a directory list in my web browser that contains: >>> >>>Directory: / >>>.checkstyle 300 bytes Feb 23, 2006 9:09:30 PM >>>.classpath 337 bytes Feb 23, 2006 8:32:04 PM >>>.project 580 bytes Feb 23, 2006 8:32:04 PM >>>.settings/ 0 bytes Feb 23, 2006 9:09:00 PM >>>.spindleUI.prefs 71 bytes Feb 23, 2006 8:32:04 PM >>>.tapestryplugin 188 bytes Feb 23, 2006 9:09:30 PM >>>context/ 0 bytes Feb 23, 2006 8:31:59 PM >>>src/ 0 bytes Feb 23, 2006 8:32:40 PM >>> >>> >>>I then navigate to http://localhost:8080/context/WEB-INF/which displays >>> >>>Directory: /context/WEB-INF/ >>>Parent Directory >>>HelloWorld.application 488 bytes Feb 23, 2006 8:34:45 PM >>>Home.html 277 bytes Feb 24, 2006 6:46:09 AM >>>Home.page 448 bytes Feb 23, 2006 8:39:20 PM >>>classes/ 0 bytes Feb 23, 2006 9:09:30 PM >>>web.xml 647 bytes Feb 23, 2006 8:32:04 PM >>> >>>When I run Home.html the following is displayed in my browser: >>> >>>Welcome to your first Tapestry Application >>> >>>This text will be replaced by Tapestry >>> >>>Thanks >>>Calvin >>> >>>Geoff Longman wrote the following on 2/25/2006 4:27 PM: >>> >>> >>>>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 --> >>>>>>> >>>>>>><DEFANGED_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 >>>> >>> >>> >>> >> >>-- >>http://mywebpages.comcast.net/tnczoo/ >>----- >>"If a dog will not come to you after having looked you in the face, you >>should go home and examine your conscience." >>- Woodrow Wilson >>----- >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- http://mywebpages.comcast.net/tnczoo/ ----- "If a dog will not come to you after having looked you in the face, you should go home and examine your conscience." - Woodrow Wilson -----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]