> I'm already doing that, look this:
>
> try {
> System.out.print(query);
> Statement stmt = con.createStatement();
> ResultSet rs = stmt.executeQuery(query);
> System.out.print(rs);
> if (rs.next())
> {
> //return IGNORE_OPERATION;
> throw new ValidationException("my custom error message.");
> }
> else {
> return GRANT_OPERATION;}
> }catch (Exception e) {
> e.printStackTrace();
> return DENY_OPERATION;
> }
>
Try a throw statement in your catch block!
Henner
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms