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 org.satic.web.controller; import java.util.HashMap; import java.util.Map; import org.satic.web.model.FacadeContenido; import org.satic.web.model.FacadeGrado; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; /** * * @author miguel */ @Controller public class PruebaController { @Autowired private FacadeContenido facade; @RequestMapping(value = "/prueba.htm") public ModelAndView pruebaAction() { return new ModelAndView("prueba", "contenidos", facade.getAllContenido()); } }