Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/projectapollo/demo/General/LeftFrame/LeftFrameBroker.java


1   package org.projectapollo.demo.General.LeftFrame;
2   
3   import apollo.*;
4   import apollo.Template.*;
5   import apollo.Storable.*;
6   
7   import java.util.*;
8   
9   import apollo.Session.*;
10  
11  public class LeftFrameBroker extends PageBroker {
12    public LeftFrameBroker(ManagerTracker MT, String fquid, PageBroker PB) throws TemplatePageException {
13      super(MT,fquid,PB);
14      MT.getPM().registerTemplatePage(FQUID, new TemplatePage(MT,this,false));
15    }
16    
17    public HTTPResponse render(TransactionTracker TT, HTTPRequest req, WebSession thisSession) throws ApolloException {
18      Hashtable RT = new Hashtable();
19      if (req.hasValue("Body")) {
20        String body = req.getValue("Body");
21        int locationOfLastDot = body.lastIndexOf(".");
22        if (locationOfLastDot!=-1) {
23          body = body.substring(locationOfLastDot+1);
24        }
25        RT.put(body+"Selected", new Boolean(true));
26      }
27      if (req.hasValue("Body")) {
28        RT.put("Body", req.getValue("Body"));
29      }
30      
31       return MT.getPM().getPage(FQUID).render(RT, thisSession);
32    }
33  }