Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.karki.spring.controller; import com.karki.spring.dao.EnquiryDao; import java.sql.SQLException; 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.portlet.ModelAndView; /** * * @author sharmila */ @Controller @RequestMapping(value = "/enquiry") public class EnquiryController { @Autowired private EnquiryDao enquiryDao; @RequestMapping("deleteEnquiry") public ModelAndView delete(ModelMap mv) throws SQLException, ClassNotFoundException { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }