Object command, Errors errors, int page) throws Exception {
int idHotel = userContainer.getUser().getStructureId();
Map map = new HashMap();
Booking booking= (Booking) command;
if(page==0){
VacancyDTO dto = (VacancyDTO) req.getSession().getAttribute("backofficeDTO");
booking.setBeginDate(dto.getBeginDate());
booking.setFinishDate(dto.getFinishDate());
map.put("begindate", dto.getBegindate());
map.put("finishdate", dto.getFinishdate());
map.put("typologies", typologyManager.getTypologiesFromStructure(idHotel));
map.put("camere", bookingManager.getVacantRooms(dto.getBeginDate(), dto.getFinishDate(), dto.getTypologyId()));
}
if(page==1){
ArrayList<Structure> hotels = new ArrayList<Structure> ();
hotels.add((Structure) structureManager.get(idHotel));
map.put("hotels",hotels);