> What would be a good way to handle exception thrown
> then?  How do I get the error message?

this is the easiest method that I use:

in Java Classes
------------------
        ...
        catch (Exception e)
        {
            context.put("error", "select: " + e.toString());
            return; // or redirect to exception page
        }
----------------

in .vm files

---------------
      #if ($error)
        <form>
        <font class="biggest" color="red">
          $error
        </font>
        <br>
        <input type="button" value=" << back << " onclick="history.go(-1);">
        </form>
      #else
        your page goes here
     #end
---------------

This way isn't the cleanest, but is enougth fast and easy.

Bye, Andrea


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

Reply via email to