KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > processor > form > ErrorNumber


1 package org.apache.slide.projector.processor.form;
2
3 import java.util.Map JavaDoc;
4
5 import org.apache.slide.projector.Context;
6 import org.apache.slide.projector.Result;
7 import org.apache.slide.projector.processor.TemplateRenderer;
8
9 /**
10  * @version $Revision: 1.3 $
11  */

12
13 public class ErrorNumber extends TemplateRenderer {
14     private final static String JavaDoc FRAGMENT = "error-number";
15
16     public ErrorNumber() {
17         setRequiredFragments(new String JavaDoc[] { FRAGMENT });
18     }
19
20     public Result process(Map JavaDoc parameter, Context context) throws Exception JavaDoc {
21         return new Result(OK, OUTPUT, renderFragment(FRAGMENT, parameter));
22     }
23 }
Popular Tags