tapestry-user@jakarta.apache.org
[Top] [All Lists]

RE: visit object

Subject: RE: visit object
From: "Filip S. Adamsen"
Date: Wed, 20 Oct 2004 18:09:07 +0200
The Visit class is actually not a class, but more some sort of naming
convention. You can call it Session, if you like, but most of us use the
name Visit instead, because Session is used in so many different places.

What you need to do is:

  - Create your Visit/Session/whatever class
  - Point Tapestry to it in your .application file

It should look like this (prologue omitted):

  <application>
      <property
        name="org.apache.tapestry.visit-class"
        value="your.visit.class.Here"
      />
  </application>

The .application file has to be named the same as your Tapestry servlet from
web.xml, so if you have a web.xml like this (prologue omitted):

  <web-app>
    <servlet>
      <servlet-name>Example</servlet-name>
      <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
    </servlet>
  </web-app>

then your application file should be named Example.application and reside in
the WEB-INF dir together with web.xml.

Hope this helps.

-Filip

> -----Original Message-----
> From: Markus Markert [mailto:email@xxxxxxxxxxxxxxxxx]
> Sent: Wednesday, October 20, 2004 5:40 PM
> To: tapestry-user@xxxxxxxxxxxxxxxxxx
> Subject: visit object
> 
> hi list,
> 
> can somebody tell my how to create a visit object in tapestry and what i
> must implement as methodes (createVisit..)? Because when i say in code
> 
> Visit myVisit = (Visit)getVisit();
> 
> it brings me a compiler failure with the text:
> 
> cannot be resolved or is not a type ...
> 
> any hints?
> 
> greetings
> 
> markus




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>