Hi all

I've found my error in the pdf from
http://www.agileskills2.org/EWDT/... The output folder of my classes
wasn't in the WEB-INF/classes folder...

I feel better now ;)

Moving on !

ZedroS
On 1/23/06, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Sorry to disturb you with such an easy thing (I guess) than the
> DirectLink tutorial.
>
> In fact, I'm there :
> http://jakarta.apache.org/tapestry/QuickStart/directlink.html#Locating+the+page+class
> . I've created (and tripled check everything) the app.application and
> I still get the error "Unable to read OGNL expression '<parsed OGNL
> expression>' of [EMAIL PROTECTED]: $BasePage_0.counter"
>
> I'm working with Tomcat5.5 and Eclipse 3.1 (JSDK 5 as well).
>
> My folders are shown on the joint picture.
>
> In app.application I've :
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>
> <application>
>   <meta key="org.apache.tapestry.page-class-packages" 
> value="directlink.pages"/>
>
> </application>
>
> In Home.java :
> package directlink.pages;
>
> import org.apache.tapestry.annotations.Persist;
> import org.apache.tapestry.html.BasePage;
>
> public abstract class Home extends BasePage
> {
>     @Persist
>     public abstract int getCounter();
>     public abstract void setCounter(int counter);
>
>     public void doClick()
>     {
>         int counter = getCounter();
>
>         counter++;
>
>         setCounter(counter);
>     }
> }
>
> In Home.html
> <html>
>   <head>
>     <title>Tutorial: HelloWorld</title>
>   </head>
>   <body>
>     <h1>HelloWorld Tutorial</h1>
> <p>
>   The current value is:
>     <span style="font-size:xx-large"><span jwcid="@Insert"
> value="ognl:counter">37</span></span>
> </p>
>
> <p>
>   <a href="#" jwcid="[EMAIL PROTECTED]"
> listener="listener:doClick">increment counter</a>
> </p>
>
> <p>
>   <a href="#" jwcid="@PageLink" page="Home">refresh</a>
> </p>
>
>   </body>
> </html>
>
> And, last but not least, in 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";>
>
> <web-app>
>   <display-name>Tutorial: DirectLink</display-name>
>   <servlet>
>     <servlet-name>app</servlet-name>
>     <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>     <load-on-startup>0</load-on-startup>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>app</servlet-name>
>     <url-pattern>/app</url-pattern>
>   </servlet-mapping>
> </web-app>
>
> Could you tell me where I did mess up something ? I'm getting crazy...
>
> Kinds regards,
>     ZedroS
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to