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.presentation;
16:
17: import java.io.Writer;
18: import org.araneaframework.jsp.tag.BaseTag;
19: import org.araneaframework.jsp.util.JspUtil;
20:
21: /**
22: * Standard italic tag.
23: *
24: * @author Oleg Mürk
25: *
26: * @jsp.tag
27: * name = "italic"
28: * body-content = "JSP"
29: * description = "Acts as <i><i></i> HTML tag."
30: */
31: public class ItalicHtmlTag extends BaseTag {
32:
33: //
34: // Implementation
35: //
36:
37: protected int doStartTag(Writer out) throws Exception {
38: super .doStartTag(out);
39:
40: JspUtil.writeStartTag_SS(out, "i");
41:
42: // Continue
43: return EVAL_BODY_INCLUDE;
44: }
45:
46: protected int doEndTag(Writer out) throws Exception {
47: JspUtil.writeEndTag(out, "i");
48:
49: // Continue
50: super.doEndTag(out);
51: return EVAL_PAGE;
52: }
53: }
|