我实施 geoserver的OWS 。我希望specific method of the OWS
获得ModelAndView
如下:
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
public class HelloWorld {
public HelloWorld() {
// Do nothing
}
public ModelAndView sayHello(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, Exception {
ModelAndView m = new ModelAndView("index");
return m;
}
}
我该怎么做??