Messages with Webmacro

"Dominik" <[email protected]> Sun, 10 Jul 2005 01:29:50 +0200
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar