package com.controllers;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.dao.UserDAO;
import javax.transaction.TransactionManager;
import org.springframework.jdbc.support.lob.LobHandler;
@Controller
//@RequestMapping("treatmentdetails.html")
public class TreatmentController {
@Autowired
private UserDAO myUserDAO;
public void setMyUserDAO(UserDAO myUserDAO) {
this.myUserDAO = myUserDAO;
}
@RequestMapping("treatmentdetails.html")
public String showTreatmentReqPage()
{
System.out.println("in TreatmentController.java");
return "treatmentdetails";
}
@RequestMapping("treatment_details")
public String showTreatmentDetails(Map model)
{
ModelMap modelMap = new ModelMap();
System.out.println("in showTreatmentDetails()");
//modelMap.addAttribute("treatment_details", myUserDAO.Channel_list());
//System.out.println("in showTreatmentDetails method"+treatment_details.s);
//myUserDAO.Channel_list();
//model.put("treatment_details", myUserDAO.Channel_list());
return "Treatement_Detailes";
}
@RequestMapping("Channel_details")
public String showChannelDetails(Map model)
{
ModelMap modelMap = new ModelMap();
System.out.println("in showChannelDetails()");
//modelMap.addAttribute("treatment_details", myUserDAO.Channel_list());
//System.out.println("in showTreatmentDetails method"+treatment_details.s);
//myUserDAO.Channel_list();
model.put("treatment_details", myUserDAO.Channel_list());
return "Treatement_Detailes";
}
}