Hi,
create a page named club (...pages.Club and a Club.tml).
In Club.java:
public class Club
{
void onActivate(long id) {
// whatever you like
}
}
Now you can send the id or name or whatever you like to the page by
requesting the url ...YourApp/Club/123
Regards
Christian
DaveFunkyJam schrieb:
Hi there. I have a Tapestry 5 application which manages data for many clubs.
I would like the application to show club information depending on the URL
that is typed in.
Eg. If you enter "localhost:8080/MyApp/Club1" ...then the app should strip
out the end of the requst url (Club1), do a lookup in the database for the
club, and add this to the session. Then all database requests can look up
data depending on which club is in the session.
If you enter "localhost:8080/MyApp/Club2", you get club to registered in the
session, and all database requests are for club 2.
Do you know if there is an easy way to do this?
Many thanks.
Tapestry 5 rocks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]