Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-19 Thread Malin Ljungh
Thank you all. It turns out my servlet filter does actually work! I had some other issues :[ I now use the filter from here: http://www.hibernate.org/43.html and it seems to satisfy my needs for now anyway :) Malin On 7/18/06, Pratibha Gopalam <[EMAIL PROTECTED]> wrote: This is what I did p

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Pratibha Gopalam
This is what I did public class MyFilter implements WebRequestServicerFilter{ public void service(WebRequest request, WebResponse response, WebRequestServicer servicer) throws IOException { try { //do whatever u want servicer.servi

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread James Carman
Tapernate uses a Tapestry WebRequestServicerFilter to implement the open-session-in-view pattern. > Thank you James. > > Maybe Tapernate is a good idea... it's just that my project is really > small > and I would rather avoid another dependency. And I have not introduced > Hivemind yet. But I'll s

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Shing Hing Man
The following is a simple CRUD web application example written in Hibernate and Tapetsry 3 (no HiveMind nor Spring) using servlet filter to avoid LazyInitilisationException. http://lombok.demon.co.uk/folders/welcome There is another version of the above for Tapestry 4 using the approach describ

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Malin Ljungh
Thank you James. Maybe Tapernate is a good idea... it's just that my project is really small and I would rather avoid another dependency. And I have not introduced Hivemind yet. But I'll sure check it out carefully. And I'm still curious for the answer to my question - anyone? :) Malin On 7/1

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-17 Thread James Carman
Why reinvent the wheel? Try tapernate: www.carmanconsulting.com/tapernate You can use anonymous/anon to check it out from the SVN repository. > Hi all, > > I have tried to implement a Servlet Filter but my Tapestry 4 app will not > take it... I get some weird errors - is it not supposed to work

How do I do a Servlet filter, or similar functionality... help please!

2006-07-17 Thread Malin Ljungh
Hi all, I have tried to implement a Servlet Filter but my Tapestry 4 app will not take it... I get some weird errors - is it not supposed to work? I have also read about the ServletRequestServicerFilter but I cannot find any decent documentation - is there any? ... I lack documentation about man