ok, thanks

Howard Lewis Ship wrote:
> 
> Your snippet is what I have in mind, but I haven't had a chance to
> implement it, yet.
> 
> I suspect a 5.0.2 is around the corner, but I'm fighting some fires right
> now!
> 
> On 2/20/07, bueggers <[EMAIL PROTECTED]> wrote:
>>
>> It basically works when I do the following.
>>
>> try {
>>         response.sendRedirect("../Error");
>>      } catch (IOException e1) {
>>         e1.printStackTrace();
>>      }
>>
>> But this is quite dirty.
>> In the above snippet I can show the error page. But I need to set an
>> error
>> message to the error page.
>> This makes me manually do url encoding.
>> I expect the framework to do all that for me.
>>
>> I would expect to be able to do something like the following:
>>
>> @InjectPage
>> private Error errorPage;
>>
>> @SetupRender
>> private Object loadDetails(){
>>     ....
>>     //id not found
>>     errorPage.setErrorMessage("No valid id " + id);
>>     return errorPage;
>> }
>>
>>
>>
>>
>> Massimo Lusetti wrote:
>> >
>> > On 2/20/07, bueggers <[EMAIL PROTECTED]> wrote:
>> >
>> >> But where to do the redirection to an error page in Tap 5?
>> >> The onActivate method detects the error but how to display other page
>> >> then?
>> >
>> > Isn't as simple as injecting infrastructure:Response and then use
>> > sendRedirect ?
>> >
>> > --
>> > Massimo
>> > http://meridio.blogspot.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tap-5-redirect-after-onActivate-tf3260344.html#a9076144
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tap-5-redirect-after-onActivate-tf3260344.html#a9076245
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to