@@ -0,0 +1,2079 @@
+%0Apackage com.cross.controller;%0A%0Aimport com.cross.dao.pojo.Corporation;%0Aimport com.cross.dao.pojo.Local;%0Aimport com.cross.dao.pojo.Login;%0Aimport com.cross.dao.pojo.Search;%0Aimport com.cross.services.CalendarService;%0Aimport com.cross.services.ComponentService;%0Aimport com.cross.services.CorporationService;%0Aimport javax.servlet.http.HttpSession;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0A%0A   /*%0A       @author to Ibrahim Abdsaid Hanna @2016%0A                  ibrahim.seniore@gmail.com%0A   */%0A%0A@Controller%0Apublic class HomeController %7B%0A    %0A    ComponentService componentService;%0A    CalendarService calendarService;%0A    CorporationService corporationService;%0A    HttpSession session;%0A%0A    @Autowired%0A    public void setSession(HttpSession session) %7B%0A        this.session = session;%0A    %7D%0A     %0A     @Autowired%0A    public void setComponentService(ComponentService componentService) %7B%0A        this.componentService = componentService;%0A    %7D%0A     @Autowired%0A    public void setCalendarService(CalendarService calendarService) %7B%0A        this.calendarService = calendarService;%0A    %7D%0A    %0A      %0A    @Autowired%0A    public void setCorporationService(CorporationService corporationService) %7B%0A        this.corporationService = corporationService;%0A    %7D%0A         %0A      %0A    @RequestMapping(%22/home%22)%0A    public String homePage(Model model)%7B%0A      %0A        Object userID=session.getAttribute(%22userID%22);%0A        if(userID!=null)%7B    %0A              model.addAttribute(%22coname%22, corporationService.getCorporationName(userID.toString()));%0A          //   model.addAttribute(%22countryList%22, componentService.getCountryMapList(componentService.getCountries()));%0A          //   model.addAttribute(%22industryList%22, componentService.getIndustriesMapList(componentService.getIndustryTypes()));   %0A             return %22home%22;%0A        %7D %0A        else%7B%0A            %0A            return %22redirect:/welcome%22;%0A        %7D%0A      %0A    %7D%0A %0A    %0A%7D%0A

Create HomeController.java