01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.jsp.tag;
16:
17: import java.io.Writer;
18: import javax.servlet.jsp.JspException;
19: import javax.servlet.jsp.tagext.IterationTag;
20:
21: /**
22: * UI iteration base tag.
23: *
24: * @author Oleg Mürk
25: */
26: public class BaseIterationTag extends BaseTag implements IterationTag {
27: /**
28: * Internal callback: afer body.
29: * @throws Exception
30: */
31: protected int afterBody(Writer out) throws Exception {
32: return SKIP_BODY;
33: }
34:
35: //
36: // IterationTag methods
37: //
38:
39: /**
40: * Standard implementation of after body.
41: */
42: public int doAfterBody() throws JspException {
43: try {
44: return afterBody(pageContext.getOut());
45: } catch (RuntimeException e) {
46: throw e;
47: } catch (JspException e) {
48: throw e;
49: } catch (Exception e) {
50: throw new JspException(e);
51: }
52: }
53: }
|