Implementing the TryCatchFinally interface correctly

Discussion in 'Java' started by Manavendra Gupta, Mar 7, 2004.

  1. I have a library of custom tags which assist in page
    generation/presentation.

    Due to inexperience, at a rather late stage I realised I need a tag that
    would wrap the entire page in a try/catch block and at the very least,
    display a readable message about the failure when some of the content may
    already have been written.

    The TryCatchFinally interface has been implemented, but I have a problem:
    the generated java code (from the JSP) indicates the "wrapper" tag is really
    not a wrapper - the "_jspService" invokes the tag's doStartTag(), but the
    rest of the page's code is NOT invoked from the doStartTag() but the
    _jspService() method.

    What would I need to do to tie in the rest of the JSP page with this,
    so-assumed wrapper tag?

    Thanks
    Manav
    Manavendra Gupta, Mar 7, 2004
    #1
    1. Advertising

  2. resolved... broken tag hierarchy :s
    Manavendra Gupta, Mar 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gomathi

    Implementing Interface

    Gomathi, Nov 17, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    553
    S.M. Altaf [MVP]
    Nov 17, 2005
  2. Robert Maas, see http://tinyurl.com/uh3t

    Trouble implementing an interface, strange compiler error

    Robert Maas, see http://tinyurl.com/uh3t, May 15, 2005, in forum: Java
    Replies:
    4
    Views:
    506
    Ross Bamford
    May 15, 2005
  3. golem
    Replies:
    13
    Views:
    781
    Nigel Wade
    Feb 17, 2006
  4. kscho
    Replies:
    1
    Views:
    391
    Rob Williscroft
    Sep 16, 2003
  5. K Viltersten

    Using or TryCatchFinally

    K Viltersten, Oct 24, 2009, in forum: ASP .Net
    Replies:
    2
    Views:
    281
    K Viltersten
    Oct 24, 2009
Loading...

Share This Page