home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / allaire / util / template / IncludeElement.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  1.3 KB  |  23 lines

  1. package allaire.util.template;
  2.  
  3. import java.net.MalformedURLException;
  4. import java.net.URL;
  5.  
  6. class IncludeElement extends TemplateTagElement {
  7.    private static final String TEMPLATE = "TEMPLATE";
  8.  
  9.    public void process(TemplateOutput var1) throws TemplateException {
  10.       String var2 = ((TemplateTagElement)this).getAttributes().getRequired("TEMPLATE");
  11.       URL var3 = ((TemplateElement)this).getParser().getBaseIncludeURL();
  12.       Object var4 = null;
  13.  
  14.       try {
  15.          var6 = new URL(var3, var2);
  16.       } catch (MalformedURLException var5) {
  17.          throw new TemplateException(1002, "Invalid URL specified for TEMPLATE attribute in " + ((TemplateTagElement)this).getTagName() + " tag (" + var2 + ").");
  18.       }
  19.  
  20.       ((TemplateElement)this).getParser().parse(var6, var1);
  21.    }
  22. }
  23.