Em Mon, 15 Dec 2008 14:44:50 -0300, thermus <msch...@gmail.com> escreveu:

Thiago, can the approach you propose coexist with an onActivate context for Tapestry requests or are they mutually exclusive?

They're not mutually exclusive. They are just different ways to receive parameters. Which one to use is all about the URLs.

Suppose the page that will receive the request is named "process":

www.example.com/process/parameter1/parameter2/parameter3: use onActivate
www.example.com/process?parameter1=1&parameter2=2: use Request.getParameter
www.example.com/process/parameter1/parameter2?parameter3=3: use both! onActivate to get parameters 1 and 2 and Request.getParameter to get parameter 3.

In what page method does getting the request parameters happen (e.g. onActivate?) ?

You can use Request in any method. You use it like you would use HttpServletRequest. The difference is that your code depends only in Tapestry, not in the Servlet API.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to