From: Dominik <do...@db...> - 2005-07-09 23:29:42
|
Hy, I'm using Webmacro to develop a small Webapp. No I ran into problems because I need a function to call, if I want to post a Message. For example, take a guestbook-webapp: When you submit the entry-form the app checks whether all entered data is ok, when it is ok, then a page with the data is displayed (via a template). But, when the data is not wellformed then there should be a message telling the user to go back and refill the page. As a solution I found out that I could throw a HandlerException, but I want the message to be shown in my own layout. The Handler-Exception also produces another Problem: On every Page-Request the app gets a database-connection from a connection-pool and puts it back on the very and of each handler-call. But, when I throw a Handler-Exception the end of the handler-call is never reached so the connection isn't put back into the pool. Is there a solution? Thanks Dominik |