is there a root page then, do I need to program this in my Index page, or am I 
better something like this

somedomain.com/p/JackSmith

Where p is a page and JackSmith is the username?

John
  ----- Original Message ----- 
  From: Thiago H de Paula Figueiredo 
  To: Tapestry users 
  Sent: Sunday, January 27, 2013 11:45 AM
  Subject: Re: handling parameters passed through the url path


  On Sun, 27 Jan 2013 09:39:36 -0200, John <j...@quivinco.com> wrote:

  > Suppose I want to pass a parameter like this:
  > http://somedomain.com/JohnSmith
  > instead of http://somedomain.com?username=JohnSmith
  > so the parameter looks like a subdirectory.
  > Can a tapestry page plus some kind of service hande this?

  That's the page activation context:  
  http://tapestry.apache.org/page-navigation.html, specially section "Page  
  Activation".

  Basically, on a page class:

  void onActivate(String username) {
  // username will get the first parameter in the URL (slash separated)
  }

  -- 
  Thiago H. de Paula Figueiredo

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to