Hi,

You can return an URL object and this will perform the redirect like this
example :

public Object onActivate()
{

        URL myURL= null;

        try
        {
            myURL= new URL("http://www.google.com";);
        }
        catch (MalformedURLException e)
        {
            //logs
        }

        return myURL;
    }


2010/9/8 t5.0 <t...@kochira.com>

>
> What is the best strategy to deal with a URL given as a parameter to a
> page,
> and then perform a redirect to it, with Tapestry 5.0.x
>
> 1. onActivate
>
> @Inject
> private Response response;
>
>
> public void onActivate(String url) {
>
>  ...some processing with url...
>
>  response.sendRedirect(url);
> }
>
>
> 2. Filter
>
> 3. Or ??
>
> Thank you.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Deal-with-URL-as-a-parameter-and-redirect-tp2807631p2807631.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to