You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Calvin Deiterich <ce...@comcast.net> on 2006/02/25 14:06:17 UTC

New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Being new to tapestry I am trying to work through the HelloWorld
tutorial. The code compiles, runs using Jetty Launcher and I can go to
localhost:8080 and the page comes up but the text is not being replaced.

I am running:
Eclipse  3.1.1
Spindle 3 for Tapestry 3.2.13
Jetty Launcher Plugin 1.3.0

I have been in contact with Geoff from Spindle and he has been kind
enough to try my code and it works for him.
I also have tomcat installed, server not started, but I am not sure how
to move the code over to test it there.

Thanks
Calvin
-- 
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
-----


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Calvin Deiterich <ce...@comcast.net>.
The last two responses fixed the probem.  I had to set the webapp root
dir: to context/ and point my browser to http://localhost:8080/app and
it worked.
Thanks to everyone for all their help.
Calvin

Mind Bridge wrote the following on 2/25/2006 6:17 PM:
> Hi,
> 
> Please try
> 
> http://localhost:8080/app
> 
> 'app' is the name of the servlet defined in WEB-INF/web.xml.
> 
> Calvin Deiterich wrote:
> 
>> 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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>> For additional commands, e-mail:
>>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>>             
>>>>>>
>>>>>>
>>>>>>           
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>        
>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> tapestry-user-help@jakarta.apache.org
>>>>>>           
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>         
>>>>
>>>> -- 
>>>> 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
>>>
>>>     
>>
>>
>>
>>  
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
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
-----


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Mind Bridge <mi...@yahoo.com>.
Hi,

Please try

http://localhost:8080/app

'app' is the name of the servlet defined in WEB-INF/web.xml.

Calvin Deiterich wrote:
> 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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>>             
>>>>>
>>>>>           
>>>> ------------------------------------------------------------------------
>>>>
>>>>         
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>         
>>> --
>>> 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
>>
>>     
>
>
>   
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Calvin Deiterich <ce...@comcast.net>.
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 <ce...@comcast.net> 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:cedmail@comcast.net]
>>>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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>>>For additional commands, e-mail:
>>
>>tapestry-user-help@jakarta.apache.org
>>
>>>>>>>
>>>>>>------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>>For additional commands, e-mail:
>>
>>tapestry-user-help@jakarta.apache.org
>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>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: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 


-- 
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
-----


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Pablo Ruggia <pr...@gmail.com>.
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 <ce...@comcast.net> 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:cedmail@comcast.net]
> > 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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
> >>>>>>For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >>>>
> >>>>>
> >>>>>
>
> >>>>------------------------------------------------------------------------
> >>>>
> >>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>>>>For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>--
> >>>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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Calvin Deiterich <ce...@comcast.net>.
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:cedmail@comcast.net] 
> 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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>>
>>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>--
>>>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
-----


RE: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by James Carman <ja...@carmanconsulting.com>.
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:cedmail@comcast.net] 
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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>>>
>>>>
>>>>
>>>>
>>>------------------------------------------------------------------------
>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>--
>>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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Calvin Deiterich <ce...@comcast.net>.
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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>>>
>>>>
>>>>
>>>>
>>>------------------------------------------------------------------------
>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>--
>>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
-----


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Geoff Longman <gl...@gmail.com>.
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 <gl...@gmail.com> 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 <sebster@sebster.com > 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: tapestry-user-unsubscribe@jakarta.apache.org
> > >> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> > >>
> > >>
> > >
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> 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

Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Geoff Longman <gl...@gmail.com>.
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 <se...@sebster.com> 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: tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
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

Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Sebastiaan van Erk <se...@sebster.com>.
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: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Calvin Deiterich <ce...@comcast.net>.
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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
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
-----


Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

Posted by Barry Books <tr...@gmail.com>.
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org